entlicher commented on a change in pull request #3312:
URL: https://github.com/apache/netbeans/pull/3312#discussion_r745711979
##########
File path:
java/debugger.jpda.truffle/src/org/netbeans/modules/debugger/jpda/truffle/access/TruffleAccess.java
##########
@@ -457,10 +457,11 @@ private static CurrentPCInfo
getCurrentPosition(JPDADebugger debugger, JPDAThrea
private static HitBreakpointInfo[] getBreakpointInfos(ExecutionHaltedInfo
haltedInfo, JPDAThread thread) {
ObjectVariable[] breakpointsHit = haltedInfo.breakpointsHit;
ObjectVariable[] breakpointConditionExceptions =
haltedInfo.breakpointConditionExceptions;
- int n = breakpointsHit.length;
+ int n = (breakpointsHit != null) ? breakpointsHit.length : 0;
Review comment:
I know. I'm just used to it to visually enclose the condition for better
readability.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
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