Modify ↓
Opened 17 years ago
Closed 17 years ago
#2535 closed defect (fixed)
[Patch] NPE if neither the specified icon nor no_icon.png can be found
| Reported by: | podolsir | Owned by: | team |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | Core | Version: | latest |
| Keywords: | Cc: |
Description
As of [1578], in case the icon image specified in the style file cannot be found and there's also no misc/no_icon.png file, the style XML reader still creates an IconElemStyle with the icon field set to null. If MapPaint then tries to paint the node with this style, it traps an NPE in MapPaintVisitor.drawNode.
Attachments (1)
Change History (3)
by , 17 years ago
| Attachment: | missing-icon-npe.patch added |
|---|
comment:1 by , 17 years ago
| Summary: | NPE if neither the specified icon nor no_icon.png can be found → [Patch] NPE if neither the specified icon nor no_icon.png can be found |
|---|
Note:
See TracTickets
for help on using tickets.



proposed solution: ignore the icon style spec if icon would be null