We've observed that in the API call to ButtonModel javax.swing.ButtonGroup.getSelection(), there seems to be a missing check for a return value, which could potentially lead to a NullPointerException. This issue is evident in the code at the following link:
Hi folks,
We've observed that in the API call to
ButtonModel javax.swing.ButtonGroup.getSelection()
, there seems to be a missing check for a return value, which could potentially lead to aNullPointerException
. This issue is evident in the code at the following link:code link1
code link2
code link3
code link4
code link5
Specifically, as noted in the library's documentation on line 140, the return value of this method can be
null
if no button has been selected:For further reference, please see the line 140 of the library code at this link.
Best wishes, 1phan