kurioes / pmix

Automatically exported from code.google.com/p/pmix
0 stars 0 forks source link

NumberFormatException in org.a0z.mpd.Music when track data contains letters #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If the Music class receives data from mpd that has Track data such as "A1"
(for something that was ripped from an actual record), it will cause pmix
to die with a NumberFormatException.  

The offending line in the current subversion source is line 71:

  this.track = Integer.parseInt(aux[0]);

Wrapping this in a try/catch NumberFormatException fixed it for me, and now
pmix is working on my Samsung Moment running Android 1.5

Original issue reported on code.google.com by gregory....@gmail.com on 4 Nov 2009 at 6:05

GoogleCodeExporter commented 9 years ago
Will be fixed in 0.4-beta3 (comming soon)

Original comment by stefan.a...@gmail.com on 4 Nov 2009 at 8:07