Bug 1930 - slimserver dies with "Can't call method "namesort" on an undefined value"
: slimserver dies with "Can't call method "namesort" on an undefined value"
Status: RESOLVED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Misc
: 6.2.0
: PC Windows XP
: P2 normal (vote)
: ---
Assigned To: Dan Sully
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-08-04 11:51 UTC by Hakan Tandogan
Modified: 2008-09-15 14:36 UTC (History)
1 user (show)

See Also:
Category: ---


Attachments
Zager & Evans - In The Year 2525.mp3 (3.03 MB, application/octet-stream)
2005-08-04 12:01 UTC, Hakan Tandogan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hakan Tandogan 2005-08-04 11:51:09 UTC
I'm using slimserver (SVN 3855) on Linux.

The server dies with "Can't call method "namesort" on an undefined value at
.../Slim/DataStores/DBI/DBIStore.pm line 1502, <GEN28> line 1.", with both mysql
and a SQLite backends.

I have attached the file that demonstrates this problem.
Comment 1 Hakan Tandogan 2005-08-04 12:01:33 UTC
Created attachment 696 [details]
Zager & Evans - In The Year 2525.mp3

This file causes the described problem.
Comment 2 KDF 2005-08-04 14:12:11 UTC
bouncing this to Dan.

I get this same problem myself.  workaround is to change DBIStore.pm line 1502 to:
	my $primary_contributor = defined($contributors->[0]) ?
$contributors->[0]->namesort : 
		((defined($albumObj) && defined($albumObj->contributor)) ?
$albumObj->contributor->namesort : '');


The sample file seems to come up as No Album, which I expect is the same fo the
files of mine that cause this.  I would expect that a "no album" would still be
a defined $albumObj, without any defined contributors.
Comment 3 Dan Sully 2005-08-04 14:45:09 UTC
This should be fixed as of subversion change 3861.