This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | NPE in gdb.GdbProxyVL.logMessage(GdbProxyVL.java:94) | ||
---|---|---|---|
Product: | cnd | Reporter: | Nikolay Molchanov <nikmolchanov> |
Component: | Debugger | Assignee: | Nikolay Molchanov <nikmolchanov> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | ||
Priority: | P1 | ||
Version: | 5.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Nikolay Molchanov
2006-10-26 05:41:14 UTC
The root of the problem is in new method logMessage(String message), which does not check if the message is null, and passes it to logFile.write(message), which tries to get message.length() and gets the NPE. I fixed this bug. Tag: release55 User: NikMolchanov Date: 2006/10/25 22:16:08 Modified: cnd/gdb/src/org/netbeans/modules/cnd/debugger/gdb/GdbProxyVL.java Log: IZ 88021 NPE in gdb.GdbProxyVL.logMessage(GdbProxyVL.java:94) - Don't log null messages. File Changes: Directory: /cnd/gdb/src/org/netbeans/modules/cnd/debugger/gdb/ ============================================================== File [changed]: GdbProxyVL.java Url: http://cnd.netbeans.org/source/browse/cnd/gdb/src/org/netbeans/modules/cnd/debugger/gdb/GdbProxyVL.java?r1=1.2.2.18&r2=1.2.2.19 Delta lines: +1 -0 ------------------- --- GdbProxyVL.java 26 Oct 2006 01:30:42 -0000 1.2.2.18 +++ GdbProxyVL.java 26 Oct 2006 05:16:03 -0000 1.2.2.19 @@ -89,6 +89,7 @@ * @param message - a message from the debugger */ public void logMessage(String message) { + if (message == null) return; if (logFile != null) { try { logFile.write(message); --------------------------------------------------------------------- The fix is integrated in "release55" branch. |