This is an automated email from the ASF dual-hosted git repository.
tprochazka pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git
The following commit(s) were added to refs/heads/master by this push:
new 86ec42666a Fixed Formatting under Project Properties
new fa111608a9 Merge pull request #5754 from
KacerCZ/fix-project-properties-formatting
86ec42666a is described below
commit 86ec42666a2f2a0f4459e5ae6f807b1ce523e9d7
Author: Tomas Prochazka <[email protected]>
AuthorDate: Fri Mar 31 19:57:44 2023 +0200
Fixed Formatting under Project Properties
Fixes NPE Cannot invoke "java.awt.Container.validate()" because the return
value of "org.netbeans.modules.options.indentation.FormattingPanel.getParent()"
is null
at
org.netbeans.modules.options.indentation.FormattingPanel.propertyChange(FormattingPanel.java:207)
---
.../src/org/netbeans/modules/options/indentation/FormattingPanel.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git
a/ide/options.editor/src/org/netbeans/modules/options/indentation/FormattingPanel.java
b/ide/options.editor/src/org/netbeans/modules/options/indentation/FormattingPanel.java
index 0978d72f12..c540e028d2 100644
---
a/ide/options.editor/src/org/netbeans/modules/options/indentation/FormattingPanel.java
+++
b/ide/options.editor/src/org/netbeans/modules/options/indentation/FormattingPanel.java
@@ -204,7 +204,9 @@ public final class FormattingPanel extends JPanel
implements PropertyChangeListe
jSplitPane1.resetToPreferredSizes();
// parent might need a scrollbar now due to category panel change
- getParent().validate();
+ if (getParent() != null) {
+ getParent().validate();
+ }
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists