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 2023/01/09 19:41:32 UTC
[netbeans] branch master updated: Fix possible NPE in Tiny.java
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 dea562a6a8 Fix possible NPE in Tiny.java
dea562a6a8 is described below
commit dea562a6a83ff4814f9693bb41f92f0b3976b587
Author: Laszlo Kishalmi <la...@gmail.com>
AuthorDate: Sun Jan 8 22:25:10 2023 -0800
Fix possible NPE in Tiny.java
---
java/java.hints/src/org/netbeans/modules/java/hints/perf/Tiny.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/java/java.hints/src/org/netbeans/modules/java/hints/perf/Tiny.java b/java/java.hints/src/org/netbeans/modules/java/hints/perf/Tiny.java
index 0e158c4bc8..7373f01ba7 100644
--- a/java/java.hints/src/org/netbeans/modules/java/hints/perf/Tiny.java
+++ b/java/java.hints/src/org/netbeans/modules/java/hints/perf/Tiny.java
@@ -534,7 +534,7 @@ public class Tiny {
List<? extends TypeMirror> type = CreateElementUtilities.resolveType(
EnumSet.noneOf(ElementKind.class), ctx.getInfo(), parent, leaf, pos, new TypeMirror[1], new int[1]);
- if (!type.isEmpty()) {
+ if ((type != null) && !type.isEmpty()) {
return type.get(0);
}
}
---------------------------------------------------------------------
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