Commit 4e6174a
committed
Fix SpotBugs null pointer dereference warnings
Addressed 12 SpotBugs "Possible null pointer dereference" warnings across 8 files:
- CodenameOneImplementation.java: Fixed null usage in captureAudio logging and data check.
- InteractionDialog.java: Added explicit null checks for Component and Rectangle arguments in showPopupDialog.
- SimpleDateFormat.java: Added return statements to throwInvalid calls.
- HashtableContent.java: Added null check for node.
- Form.java: Added null checks for components in layered pane iteration and safely handled null Class argument in getLayeredPane.
- DefaultLookAndFeel.java: Added null checks for badgeStyle.
- SpinnerNode.java: Added null check for selectionListeners before calling isEmpty().
- CommonTransitions.java: Added default case to switch statement.1 parent 9ddf708 commit 4e6174a
File tree
2 files changed
+16
-9
lines changed- CodenameOne/src/com/codename1
- components
- ui
2 files changed
+16
-9
lines changedLines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
630 | 630 | | |
631 | 631 | | |
632 | 632 | | |
633 | | - | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
634 | 637 | | |
635 | 638 | | |
636 | 639 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1435 | 1435 | | |
1436 | 1436 | | |
1437 | 1437 | | |
1438 | | - | |
| 1438 | + | |
1439 | 1439 | | |
1440 | 1440 | | |
1441 | 1441 | | |
1442 | 1442 | | |
1443 | 1443 | | |
1444 | | - | |
1445 | | - | |
1446 | | - | |
| 1444 | + | |
| 1445 | + | |
| 1446 | + | |
| 1447 | + | |
| 1448 | + | |
1447 | 1449 | | |
1448 | 1450 | | |
1449 | 1451 | | |
| |||
1496 | 1498 | | |
1497 | 1499 | | |
1498 | 1500 | | |
1499 | | - | |
| 1501 | + | |
1500 | 1502 | | |
1501 | 1503 | | |
1502 | 1504 | | |
1503 | 1505 | | |
1504 | 1506 | | |
1505 | | - | |
1506 | | - | |
1507 | | - | |
| 1507 | + | |
| 1508 | + | |
| 1509 | + | |
| 1510 | + | |
| 1511 | + | |
1508 | 1512 | | |
1509 | 1513 | | |
1510 | 1514 | | |
| |||
0 commit comments