Modify

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#20557 closed defect (fixed)

[PATCH] NullPointerException because Object.equals is called instead of boolean==boolean

Reported by: anonymous Owned by: team
Priority: normal Milestone: 21.03
Component: JMapViewer Version:
Keywords: NullPointerException Cc: juegen.hoewener@…

Description

Hi,
when I run CheckBoxTree.main and then click on the CheckBox of the root node, a NullPointerException is thrown in line 153 of CheckBoxTree.
This happens because the equals method is called on 2 Boolean Objects which are returned by the CheckBoxNodeData.isSelected() method.
The source is from a recent download a few days ago.
cheers
Jürgen

Attachments (1)

20557.patch (1.3 KB ) - added by taylor.smock 3 years ago.
Add null checks

Download all attachments as: .zip

Change History (5)

by taylor.smock, 3 years ago

Attachment: 20557.patch added

Add null checks

comment:1 by taylor.smock, 3 years ago

Summary: NullPointerException because Object.equals is called instead of boolean==boolean[PATCH] NullPointerException because Object.equals is called instead of boolean==boolean

comment:2 by Don-vip, 3 years ago

Resolution: fixed
Status: newclosed

In 35730/osm:

fix #20557 - NPE (patch by taylor.smock)

comment:3 by Don-vip, 3 years ago

Milestone: 21.03

comment:4 by Don-vip, 3 years ago

In 17569/josm:

see #20557 - use jmapviewer 2.15

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.