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 244472 - NullPointerException at org.netbeans.lib.terminalemulator.Term$OpsImpl.op_char
Summary: NullPointerException at org.netbeans.lib.terminalemulator.Term$OpsImpl.op_char
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Terminalemulator (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: ilia
URL:
Keywords:
: 243275 243556 243681 244240 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-05-13 16:19 UTC by Alexander Pepin
Modified: 2014-06-04 15:26 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 209696


Attachments
stacktrace (1.84 KB, text/plain)
2014-05-13 16:19 UTC, Alexander Pepin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Pepin 2014-05-13 16:19:08 UTC
This bug was originally marked as duplicate of bug 233423, 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 (Build 201405051654)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.7-b01, Java(TM) SE Runtime Environment, 1.7.0_17-b02
OS: Linux

User Comments:
apepin: - create Welcome sample project
- do Step Into
- Finish debugging
Result: Exception appears.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.lib.terminalemulator.Term$OpsImpl.op_char(Term.java:3333)
   at org.netbeans.lib.terminalemulator.InterpDumb$InterpTypeDumb$ACT_REGULAR.action(InterpDumb.java:114)
   at org.netbeans.lib.terminalemulator.InterpDumb.processChar(InterpDumb.java:240)
   at org.netbeans.lib.terminalemulator.Term.putc_work(Term.java:4477)
   at org.netbeans.lib.terminalemulator.Term.access$400(Term.java:249)
   at org.netbeans.lib.terminalemulator.Term$BaseTermStream.putChars(Term.java:409)
Comment 1 Alexander Pepin 2014-05-13 16:19:10 UTC
Created attachment 147248 [details]
stacktrace
Comment 2 soldatov 2014-05-14 06:58:14 UTC
*** Bug 243275 has been marked as a duplicate of this bug. ***
Comment 3 Alexander Pepin 2014-05-14 12:14:10 UTC
It's also reproducible in trunk with installed CND and JavaSE:
java.lang.NullPointerException
	at org.netbeans.lib.terminalemulator.Term$OpsImpl.op_char(Term.java:3333)
	at org.netbeans.lib.terminalemulator.InterpDumb$InterpTypeDumb$ACT_REGULAR.action(InterpDumb.java:114)
	at org.netbeans.lib.terminalemulator.InterpDumb.processChar(InterpDumb.java:240)
	at org.netbeans.lib.terminalemulator.Term.putc_work(Term.java:4477)
	at org.netbeans.lib.terminalemulator.Term.access$400(Term.java:249)
	at org.netbeans.lib.terminalemulator.Term$BaseTermStream.putChars(Term.java:409)
	at org.netbeans.modules.cnd.debugger.gdb2.KeyProcessing$KeyProcessingStream.putChars(KeyProcessing.java:253)
	at org.netbeans.modules.cnd.debugger.gdb2.Tap.processCharFromGdb(Tap.java:287)
	at org.netbeans.modules.cnd.debugger.gdb2.Tap.putChars(Tap.java:110)
	at org.netbeans.lib.terminalemulator.Term.putChars(Term.java:3257)
	at org.netbeans.modules.cnd.debugger.common2.debugger.NativeDebuggerImpl.preKill(NativeDebuggerImpl.java:1135)
	at org.netbeans.modules.cnd.debugger.gdb2.GdbDebuggerImpl.kill(GdbDebuggerImpl.java:624)
	at org.netbeans.modules.cnd.debugger.gdb2.GdbDebuggerImpl$5$1.onExit(GdbDebuggerImpl.java:720)
	at org.netbeans.modules.cnd.debugger.gdb2.mi.MICommandManager.dispatch(MICommandManager.java:200)
	at org.netbeans.modules.cnd.debugger.gdb2.mi.MIProxy.dispatch(MIProxy.java:188)
	at org.netbeans.modules.cnd.debugger.gdb2.Gdb$MyMIProxy.dispatch(Gdb.java:745)
	at org.netbeans.modules.cnd.debugger.gdb2.mi.MIProxy.result(MIProxy.java:193)
	at org.netbeans.modules.cnd.debugger.gdb2.mi.MIProxy.processLine(MIProxy.java:157)
	at org.netbeans.modules.cnd.debugger.gdb2.Tap$4.run(Tap.java:306)
Caused: java.lang.Exception: when processing line: 17^exit

	at org.netbeans.modules.cnd.debugger.gdb2.Tap$4.run(Tap.java:308)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
java.lang.reflect.InvocationTargetException
	at java.awt.EventQueue.invokeAndWait(EventQueue.java:1269)
	at java.awt.EventQueue.invokeAndWait(EventQueue.java:1244)
	at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1349)
	at org.netbeans.lib.terminalemulator.StreamTerm$OutputMonitor.run(StreamTerm.java:256)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 52
	at org.netbeans.lib.terminalemulator.Term$BaseTermStream.putChars(Term.java:409)
	at org.netbeans.modules.cnd.debugger.gdb2.KeyProcessing$KeyProcessingStream.putChars(KeyProcessing.java:253)
	at org.netbeans.modules.cnd.debugger.gdb2.Tap.processCharFromGdb(Tap.java:287)
	at org.netbeans.modules.cnd.debugger.gdb2.Tap.putChars(Tap.java:110)
	at org.netbeans.lib.terminalemulator.Term.putChars(Term.java:3257)
	at org.netbeans.lib.terminalemulator.StreamTerm$OutputMonitor$Trampoline.run(StreamTerm.java:205)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:241)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:727)
	at java.awt.EventQueue.access$200(EventQueue.java:103)
	at java.awt.EventQueue$3.run(EventQueue.java:688)
	at java.awt.EventQueue$3.run(EventQueue.java:686)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:697)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Comment 4 ilia 2014-05-15 09:41:32 UTC
Fixed in revision:
  hg.netbeans.org/cnd-main/rev/c58781783e42
Comment 5 ilia 2014-05-15 09:46:01 UTC
*** Bug 243681 has been marked as a duplicate of this bug. ***
Comment 6 ilia 2014-05-15 09:50:00 UTC
*** Bug 243556 has been marked as a duplicate of this bug. ***
Comment 7 Quality Engineering 2014-05-15 19:36:41 UTC
Integrated into 'main-silver', will be available in build *201405151825* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/c58781783e42
User: Ilia Gromov <ilia@netbeans.org>
Log: Fixed Bug #244472 - NullPointerException at org.netbeans.lib.terminalemulator.Term$OpsImpl.op_char
Comment 8 ilia 2014-06-03 14:50:54 UTC
*** Bug 244240 has been marked as a duplicate of this bug. ***
Comment 9 Quality Engineering 2014-06-04 15:26:07 UTC
Integrated into 'releases/release80', will be available in build *201406041415* or newer. Wait for official and publicly available build.

Changeset: http://hg.netbeans.org/releases/rev/a57b65219b4e
User: Ilia Gromov <ilia@netbeans.org>
Log: Fixed Bug #244472 - NullPointerException at org.netbeans.lib.terminalemulator.Term$OpsImpl.op_char
(transplanted from c58781783e42a143d19164c511115d852aa1642f)