Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
E
ElvUI
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 33
    • Issues 33
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 1
    • Merge Requests 1
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
  • ElvUI Project
  • ElvUI
  • Issues
  • #602

Closed
Open
Opened Jul 29, 2018 by Choonster@Choonster

Nameplate.namePlateUnitToken is nil

I'm getting reports of my AddOn TargetNameplateIndicator throwing Lua errors when ElvUI nameplates are enabled. The error appears to be caused by the namePlateUnitToken field of a nameplate frame being nil, which I don't believe ever happens with the default nameplates.

An example of the error:

Date: 2018-07-26 20:16:06
ID: 1
Error occured in: Global
Count: 1
Message: ..\AddOns\TargetNameplateIndicator\core.lua line 146:
Usage: UnitIsUnit("unit", "otherUnit")
Debug:
[C]: ?
[C]: UnitIsUnit()
TargetNameplateIndicator\core.lua:146:
TargetNameplateIndicator\core.lua:144
Locals:

Line 146 is this call to UnitIsUnit with namePlateUnitToken as the second argument.

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: elvui/elvui#602