You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by lk...@apache.org on 2020/12/30 05:44:52 UTC
[netbeans] branch master updated: [NETBEANS-5176] Trivial NPE check
on a NullAllowed field on GoTo Type
This is an automated email from the ASF dual-hosted git repository.
lkishalmi 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 f140083 [NETBEANS-5176] Trivial NPE check on a NullAllowed field on GoTo Type
f140083 is described below
commit f140083fcd169aede25206d61f97880764c11d9c
Author: Laszlo Kishalmi <la...@gmail.com>
AuthorDate: Tue Dec 29 21:40:45 2020 -0800
[NETBEANS-5176] Trivial NPE check on a NullAllowed field on GoTo Type
---
ide/jumpto/src/org/netbeans/modules/jumpto/common/ItemRenderer.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ide/jumpto/src/org/netbeans/modules/jumpto/common/ItemRenderer.java b/ide/jumpto/src/org/netbeans/modules/jumpto/common/ItemRenderer.java
index 51bfa1e..4ae17c2 100644
--- a/ide/jumpto/src/org/netbeans/modules/jumpto/common/ItemRenderer.java
+++ b/ide/jumpto/src/org/netbeans/modules/jumpto/common/ItemRenderer.java
@@ -286,7 +286,7 @@ public final class ItemRenderer<T> extends DefaultListCellRenderer implements Ch
if (shouldHighlight(isSelected)) {
JLabel highlightedTarget;
String textToFormat;
- if(searchFolders.isSelected()) {
+ if ((searchFolders != null) && searchFolders.isSelected()) {
highlightedTarget = jlOwner;
textToFormat = convertor.getOwnerName(item);
} else {
@@ -433,7 +433,7 @@ public final class ItemRenderer<T> extends DefaultListCellRenderer implements Ch
private static HighlightingNameFormatter createNameFormatter(
@NonNull final GoToSettings.HighlightingType type,
- @NonNull final String separatorPattern) {
+ @NullAllowed final String separatorPattern) {
switch (type) {
case BACKGROUND:
Color back = new Color(236,235,163);
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists