#4971 closed defect (fixed)
NullPointerException at OsmReader.java:586, caused by NullPointerException at Storage.java:317
Reported by: | Adam Dunn | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core | Version: | |
Keywords: | Cc: |
Description
When attempting to open attached osm file, a NullPointerException is thrown. The file was not generated by me, but I will be able to get more information on how it was generated. Using Eclipse to debug, a breakpoint can be set for Storage:317 with a hit count of 370 (to zoom ahead to the error-causing node in the osm file). It appears that the error occurs on or near line 16217 of the osm file where node id -8043 is read. I'm not a JOSM programmer so this may not be the precise location of the problem, but it's close. This was tested with a fresh subversion checkout of revision 3213 of JOSM. The variable being passed appears to be null, going back to at least OsmReader:273, where key and value are both null.
Attachments (2)
Change History (5)
by , 15 years ago
Attachment: | 082H04_Sample.osm added |
---|
comment:1 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 by , 15 years ago
The line <tag/> is rejected because it does not provide key and value information. I added appropriate error message.
comment:3 by , 15 years ago
Thanks for looking into this. I can now submit more concrete information about the problem to the person who generated the file.
The offending osm file