Thread Tools Display Modes
12-12-09, 06:18 PM   #1
Jungleanimal
A Flamescale Wyrmkin
Join Date: Jul 2008
Posts: 104
Joining Party

I get this when I join a party. It happens immediately after clicking accept. This is after loading the newest nUI tonight for 3.3

Date: 2009-12-12 18:16:53
ID: 1
Error occured in: Global
Count: 1
Message: ..\AddOns\nUI\Units\nUI_UnitRole.lua line 796:
attempt to index upvalue 'texture' (a nil value)
Debug:
(tail call): ?
[C]: ?
nUI\Units\nUI_UnitRole.lua:796: updateRoleFrame()
nUI\Units\nUI_UnitRole.lua:507: setEnabled()
nUI\Units\nUI_Unit.lua:481: setEnabled()
nUI\Units\nUI_Unit.lua:429:
nUI\Units\nUI_Unit.lua:425
[C]: Show()
nUI\Units\nUI_UnitPanel.lua:746: newUnitInfo()
nUI\Units\nUI_UnitCache.lua:647:
nUI\Units\nUI_UnitCache.lua:591
 
12-12-09, 06:19 PM   #2
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,892
Do you remember what role you selected for yourself and what role it attributed to you if that was different somehow ?

Well the block of code that relates to is as follows :

Code:
			for i=1,numHidden do
				
				texture = hidden[i];
				
				if texture.active then
					
					texture.active = false;
					texture:ClearAllPoints();
					texture:SetAlpha( 0 );
					
				end
			end
Possibly hidden[i] is empty and thus perhaps a test for texture before accessing sub elements just in case. The question is though whether there should be a value regardless or whether there are chances there won't be a value.
__________________

Last edited by Xrystal : 12-12-09 at 06:25 PM.
 
12-12-09, 06:26 PM   #3
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
Okay -- looks like I fat fingered something.

See if the attached fixes it... just save it in your [ Interface > AddOns > nUI > Units ] folder.

.
Attached Files
File Type: lua nUI_UnitRole.lua (28.3 KB, 708 views)
__________________

What people don't get is that I am, ultimately, an artist at heart.
My brush has two colors, 1 and 0, and my canvas is made of silicon.



Official nUI Web Site: http://www.nUIaddon.com
Official nUI Support Forum: http://forums.nUIaddon.com
My day job: http://www.presidio.com/
 
12-12-09, 07:44 PM   #4
Jungleanimal
A Flamescale Wyrmkin
Join Date: Jul 2008
Posts: 104
Yep, all better. Woo Hoo!

 
12-12-09, 07:45 PM   #5
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
Awesome -- thanks for letting me know.
__________________

What people don't get is that I am, ultimately, an artist at heart.
My brush has two colors, 1 and 0, and my canvas is made of silicon.



Official nUI Web Site: http://www.nUIaddon.com
Official nUI Support Forum: http://forums.nUIaddon.com
My day job: http://www.presidio.com/
 
 

WoWInterface » Featured Projects » nUI, MozzFullWorldMap and PartySpotter » Support » nUI: Bug Reports » Joining Party

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off