AcoustID null pointer exception for release dates

All your suggestions, requests and ideas for future development
Post Reply
cowmix
Power User
Posts: 30
Joined: 09 Jan 2015, 11:03

AcoustID null pointer exception for release dates

Post by cowmix »

Code: Select all

Custom: Album Artist: Zedd, Album: Clarity, CD: 1/1, Tracks: 02/16, Artist: Zedd, Title: Shave It Up
NullPointerException: Cannot get property 'month' on null object
java.lang.NullPointerException: Cannot get property 'month' on null object
        at CustomAcoustID$_parseResult_closure17$_closure26$_closure28$_closure30.doCall(acoustid.groovy:220)
        at CustomAcoustID$_parseResult_closure17$_closure26$_closure28.doCall(acoustid.groovy:219)
        at CustomAcoustID$_parseResult_closure17$_closure26.doCall(acoustid.groovy:207)
        at CustomAcoustID$_parseResult_closure17.doCall(acoustid.groovy:198)
        at CustomAcoustID.parseResult(acoustid.groovy:195)
        at CustomAcoustID$parseResult$2.callCurrent(Unknown Source)
        at CustomAcoustID.lookup(acoustid.groovy:98)
        at CustomAcoustID$lookup.call(Unknown Source)
        at Script1$_run_closure74.doCall(Script1.groovy:761)
        at Script1.run(Script1.groovy:553)
        at net.filebot.cli.ScriptShell.evaluate(ScriptShell.java:61)
        at net.filebot.cli.ScriptShell.runScript(ScriptShell.java:82)
        at net.filebot.cli.ArgumentProcessor.process(ArgumentProcessor.java:116)
        at net.filebot.Main.main(Main.java:168)
Failure (°_°)
I think the problem is sometimes only the year is returned not a full date?
User avatar
rednoah
The Source
Posts: 23931
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: AcoustID null pointer exception for release dates

Post by rednoah »

I suppose you wrote your own CustomAcoustID class in Groovy?

This exception was raised by Groovy code:

Code: Select all

NullPointerException: Cannot get property 'month' on null object
Since my AcoustID class is plain Java, I don't know what you want me to fix. Your code? I guess you expect a date object somewhere, but for some AcoustID response that data simply isn't there.
:idea: Please read the FAQ and How to Request Help.
cowmix
Power User
Posts: 30
Joined: 09 Jan 2015, 11:03

Re: AcoustID null pointer exception for release dates

Post by cowmix »

sorry about that I completely forgot I wrote my layer on top of your acoustid and had a brain fart (the custom name should have been a hint!), its been a while since I looked at it
User avatar
rednoah
The Source
Posts: 23931
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: AcoustID null pointer exception for release dates

Post by rednoah »

No worries. It's by far the most advance customisation I've seen. I'm sure you'll figure it out.
:idea: Please read the FAQ and How to Request Help.
Post Reply