You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2023/01/09 06:29:32 UTC

[GitHub] [netbeans] lkishalmi opened a new pull request, #5249: Fix possible NPE in Tiny.java

lkishalmi opened a new pull request, #5249:
URL: https://github.com/apache/netbeans/pull/5249

   Well, I've bumped into this one today:
   ```
   java.lang.NullPointerException: Cannot invoke "java.util.List.isEmpty()" because "type" is null
   	at org.netbeans.modules.java.hints.perf.Tiny.getDestinationType(Tiny.java:537)
   	at org.netbeans.modules.java.hints.perf.Tiny.unnecessaryTempFromString(Tiny.java:488)
   	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
   ```
   
   This is a trivial patch for that. I've checked the invocations of `resolveType(...)` it seems that the return value is checked for `null` at other places.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] lkishalmi merged pull request #5249: Fix possible NPE in Tiny.java

Posted by GitBox <gi...@apache.org>.
lkishalmi merged PR #5249:
URL: https://github.com/apache/netbeans/pull/5249


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists