Commit 6623b37
committed
Fix SpotBugs NP_ALWAYS_NULL warnings in Form and UIFragment
Fixes "Null pointer dereference" warnings reported by SpotBugs.
- In `Form.java`, fix potential NPE in `getFormLayeredPane` by handling the null case for class `c` correctly and safely handling `formLayeredPane` using a local variable.
- In `UIFragment.java`, initialize `el` before dereferencing it in `buildXMLFromJSONNotation` when the first element is not a String.
- Update `.github/scripts/generate-quality-report.py` to fail on `NP_ALWAYS_NULL` violations.1 parent e9df6f7 commit 6623b37
1 file changed
+1
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1584 | 1584 | | |
1585 | 1585 | | |
1586 | 1586 | | |
1587 | | - | |
1588 | | - | |
1589 | | - | |
1590 | | - | |
1591 | | - | |
| 1587 | + | |
1592 | 1588 | | |
1593 | 1589 | | |
1594 | 1590 | | |
| |||
0 commit comments