-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NPE in track context's Point appearance menu #19993
Comments
Possibly related to the issue described in #19971 (comment): We may fail to properly identify wpts' pointsGroups here, and hence also do not assign the right icon color. |
I was unable to reproduce this issue. I attempted to reproduce it by selecting a track containing only Here's the track I used: Algeria.zip The problem might be specific to the track used. Please upload it here so we can investigate further. |
Perhaps because your track only contains one EDIT: But perhaps the issue has another cause, here is a rather short file which produces the NPE crash for me: npe-test.gpx.txt |
Once downloaded, you probably forgot to rename it back removing the |
No, I have already renamed the track in Total Commander and removed the .txt extension. Please let me know if it opens correctly for you. |
My apologies, you are right - I must have fatfingered the file. I have updated the post above with a very short npe-test.gpx file, which produces the crash for me... can you reproduce? |
It's quite strange, but this file still won't open and displays an error. I tried importing it using two methods. It seems the file might be corrupted. OsmAnd~ 4.8.0#2610m, released: 2024-06-28 video_2024-06-28_16-48-44.mp4 |
Interesting... yes, good finding. I can confirm that error when using one of OsmAnd's "import" mechanisms for file npe-test.gpx. It is the same root cause I am reporting here, and you have it explicitly on your recording: There is some 'null' interpretation of this line <
I see no reason why OsmAnd creates an NPE for this file at all, so I believe this needs fixing... There is also a cross connect here to issue #19892. The 2 issues are in the same code, and should likely be fixed together. |
Sonora, so this issue can be closed as duplicate of #19892 ? |
#19892 is not exactly a duplicate, because it deals with a functionality bug, while this here is about an occurring NPE. But yes, both issues should be fixed together, and hence be known to whoever tackles this. |
Displayed as 'Track' a GPX file which has no
<trk>
or<trkpt>
, just several<wpt>
, each tagged with one of two different<type>
tags.On the map, tap any of its waypoint icons, tap "Open track", then on the track context menu tap the 'Point' button, then "3-dots>Change default appearance'. This produces this NPE
exception.log.txt.
The text was updated successfully, but these errors were encountered: