Menu

#1 Crash with null pointer exception from Stream class

open
nobody
None
5
2007-08-13
2007-08-13
Lilian
No

Just after loggin in, the program crashes with a null pointer exception coming from the com.jabberwookie.Stream class (line 349) in the cData(String) function.

Exception in thread "Thread-0" java.lang.NullPointerException
at com.jabberwookie.Stream.cData(Stream.java:349)
at com.ssttr.xml.SAXParser.readCData(SAXParser.java:474)
at com.ssttr.xml.SAXParser._parse(SAXParser.java:144)
at com.ssttr.xml.SAXParser._parse(SAXParser.java:136)
at com.ssttr.xml.SAXParser._parse(SAXParser.java:136)
at com.ssttr.xml.SAXParser._parse(SAXParser.java:136)
at com.ssttr.xml.SAXParser._parse(SAXParser.java:136)
at com.ssttr.xml.SAXParser._parse(SAXParser.java:136)
at com.ssttr.xml.SAXParser.parse(SAXParser.java:107)
at com.jabberwookie.Stream$ParserThread.run(Stream.java:330)

Patching the line with a non-null condition seems to fix the problem but I am a little bit worried about the colateral effects of such dumb fix.

if (el != null) el.appendValue(data);

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.