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 127240

Summary: NPE on Run Internally
Product: qa Reporter: Ivan Sidorkin <ivansidorkin>
Component: CodeAssignee: issues@qa <issues>
Status: CLOSED FIXED    
Severity: blocker CC: mkhramov
Priority: P1    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 127268    
Bug Blocks:    

Description Ivan Sidorkin 2008-02-12 23:05:11 UTC
Product Version: NetBeans IDE Dev (Build 200802120006)
Java: 1.6.0_04; Java HotSpot(TM) Client VM 10.0-b19
System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb)

with installed Testing Tools

- create Java Application
- add Jelly TestCase Test
- add required libraries
- try to run added class internally 

	at org.openide.filesystems.FileUtil.copyFile(
	at org.netbeans.modules.jemmysupport.runinternally.RunInternallyAction.getScript(
	at org.netbeans.modules.jemmysupport.runinternally.RunInternallyAction.execute(
	at org.netbeans.modules.jemmysupport.runinternally.RunInternallyAction.access$000(
	at org.netbeans.modules.jemmysupport.runinternally.RunInternallyAction$
[catch] at
Comment 1 Jesse Glick 2008-02-15 20:32:12 UTC
Should not be copying source as FileObject. Can be trivially rewritten to use getResourceAsStream and FileUtil.copy instead.
Comment 2 Jiri Skrivanek 2008-02-19 13:20:26 UTC
Fixed as suggested.
Comment 3 Ivan Sidorkin 2008-03-02 01:45:14 UTC