tmysik commented on code in PR #6992:
URL: https://github.com/apache/netbeans/pull/6992#discussion_r1466392668


##########
php/php.dbgp/src/org/netbeans/modules/php/dbgp/packets/RunResponse.java:
##########
@@ -57,4 +70,18 @@ private void updateBreakpointsView(DebugSession session, 
String id) {
         }
     }
 
+    private void setCurrentBreakpointText(DebugSession session, String 
message, String code) {
+        DebugSession.IDESessionBridge bridge = session.getBridge();
+        if (bridge != null) {
+            BreakpointModel breakpointModel = bridge.getBreakpointModel();
+            if (breakpointModel != null && 
breakpointModel.isSearchCurrentBreakpointById()) {
+                AbstractBreakpoint bp = 
breakpointModel.getCurrentBreakpoint(session);
+                if (bp != null && bp instanceof ExceptionBreakpoint) {

Review Comment:
   ```suggestion
                   if (bp instanceof ExceptionBreakpoint) {
   ```
   
   The check for `null` is not needed.
   



-- 
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

Reply via email to