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.

Bug 252359

Summary: NullPointerException at org.netbeans.modules.cnd.debugger.gdb2.mi.MIRecord.toString
Product: cnd Reporter: IAbstract
Component: DebuggerAssignee: henk89
Status: RESOLVED INCOMPLETE    
Severity: normal CC: IAbstract
Priority: P3    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 217256
Attachments: stacktrace

Description IAbstract 2015-05-12 12:22:55 UTC
This bug was originally marked as duplicate of bug 214106, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 8.0.2 (Build 201411181905)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.25-b02, Java(TM) SE Runtime Environment, 1.8.0_25-b18
OS: Windows 7

User Comments:
IAbstract: IDE debugger throws exception on a printf statement using the "%s" formatter and a null terminated char* value.

GUEST: Attempted to debug basic C++ Project




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.cnd.debugger.gdb2.mi.MIRecord.toString(MIRecord.java:182)
   at java.util.Formatter$FormatSpecifier.printString(Formatter.java:2886)
   at java.util.Formatter$FormatSpecifier.print(Formatter.java:2763)
   at java.util.Formatter.format(Formatter.java:2520)
   at java.util.Formatter.format(Formatter.java:2455)
   at java.lang.String.format(String.java:2927)
Comment 1 IAbstract 2015-05-12 12:22:57 UTC
Created attachment 153616 [details]
stacktrace
Comment 2 henk89 2015-07-09 14:40:36 UTC
I'm unable to reproduce the issue.

Could you please follow the steps:
1. try debugging in gdb
2. provide me with a sample project to reproduce the issue
3. attach a gdb log (http://wiki.netbeans.org/GdbLog)