Author: andy
Date: Mon Jan 14 10:34:48 2008
New Revision: 1434
URL: http://svn.slimdevices.com?rev=1434&root=Jive&view=rev
Log:
Move check for nil player up a bit, so it doesn't try to call player.id
Modified:
trunk/jive/src/pkg/jive/share/applets/SlimBrowser/SlimBrowserApplet.lua
Modified:
trunk/jive/src/pkg/jive/share/applets/SlimBrowser/SlimBrowserApplet.lua
URL:
http://svn.slimdevices.com/trunk/jive/src/pkg/jive/share/applets/SlimBrowser/SlimBrowserApplet.lua?rev=1434&root=Jive&r1=1433&r2=1434&view=diff
==============================================================================
--- trunk/jive/src/pkg/jive/share/applets/SlimBrowser/SlimBrowserApplet.lua
(original)
+++ trunk/jive/src/pkg/jive/share/applets/SlimBrowser/SlimBrowserApplet.lua Mon
Jan 14 10:34:48 2008
@@ -1722,6 +1722,11 @@
function notify_playerCurrent(self, player)
log:debug("SlimBrowserApplet:notify_playerCurrent(", player, ")")
+ -- nothing to do if we don't have a player
+ if not player then
+ return
+ end
+
-- has the player actually changed?
if _player == player then
return
@@ -1735,11 +1740,6 @@
local SetupWallpaper =
AppletManager:loadApplet("SetupWallpaper")
SetupWallpaper:_setBackground(nil, player.id)
AppletManager:freeApplet("SetupWallpaper")
- end
-
- -- nothing to do if we don't have a player
- if not player then
- return
end
-- assign our locals
_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/cgi-bin/mailman/listinfo/jive-checkins