entlicher commented on a change in pull request #3080:
URL: https://github.com/apache/netbeans/pull/3080#discussion_r679763558



##########
File path: 
cpplite/cpplite.debugger/src/org/netbeans/modules/cpplite/debugger/CPPLiteDebuggerConfig.java
##########
@@ -50,6 +53,14 @@ public File getDirectory() {
         return directory;
     }
 
+    public boolean isAttach() {
+        return processId.isPresent();
+    }
+
+    public long getProcessId() {
+        return processId.get();

Review comment:
       There is `isAttach()` to test it. If it's false and you still ask for 
the process ID, it fails.
   I can replace it with `Long getProcessId()`, which may return `null`. It'd 
be more straightforward.




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