Getting this error on the JSON parsing version on my Linux VM:

[14-12-01 22:22:11.6046] Slim::Networking::IO::Select::__ANON__ (147)
Error: Select task failed calling
Slim::Networking::Async::HTTP::_http_read_body: Can't call method
"as_text" on an undefined value at
/var/lib/sbssvn/Cache/InstalledPlugins/Plugins/SuperDateTime/lib/Plugins/SuperDateTime/Plugin.pm
line 3241.
; fh=Slim::Networking::Async::Socket::HTTP=GLOB(0xdf8cec8)

A quick search yields a null check should be done first:

$a ? $a->as_text : '';

Which basically says "If $a exists, do the as_text of it, otherwise use
blank"


------------------------------------------------------------------------
plympton's Profile: http://forums.slimdevices.com/member.php?userid=12955
View this thread: http://forums.slimdevices.com/showthread.php?t=14327

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to