Opened 17 years ago
Closed 16 years ago
#1635 closed defect (fixed)
[PATCH] NullPointer in DirectUpload Plugin
Reported by: | Owned by: | xeen | |
---|---|---|---|
Priority: | trivial | Milestone: | |
Component: | Plugin | Version: | latest |
Keywords: | NullPointer; DirectUpload | Cc: | xeen |
Description
Hi
-using Tolls/Upload Traces with a GPX file.
- Let tags empty (as this could be in the web frontend)
-> NPE
Regards
Attachments (2)
Change History (8)
by , 17 years ago
Attachment: | NPE_DirectUpload.txt added |
---|
comment:1 by , 17 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 16 years ago
Keywords: | NullPointer DirectUpload added |
---|
#1637 is a duplicate ticket but still has a clearer error message, where it reads here "Unknown Source"
comment:3 by , 16 years ago
Owner: | changed from | to
---|---|
Status: | assigned → new |
comment:6 by , 16 years ago
Cc: | added |
---|---|
Owner: | changed from | to
Summary: | NullPointer in DirectUpload Plugin → [PATCH] NullPointer in DirectUpload Plugin |
I thought this was nice and easy…
The patch does the following:
- use JOSM provided base64 converting
- Dialog Facelift (center screen, borders, translatable, dialog title, etc.)
- Fix indentation (and remove those "auto generate" comments)
- Auto select GPX layer if only one is available (and copies filename to description)
- Fix the NullPointer issue (hopefully I didn't introduce new ones)
- Fix special character handling so that the upload doesn't fail
It's still far from perfect, most obviously it should use the main worker to upload instead of hanging when clicking "upload". Will probably add this in a later patch, it's not my top priority.
NPE Stack Trace