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 142396 - NPE appears when user runs shell script
Summary: NPE appears when user runs shell script
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Sergey Grinev
URL:
Keywords:
Depends on:
Blocks: 142438
  Show dependency tree
 
Reported: 2008-07-31 12:49 UTC by soldatov
Modified: 2008-08-01 04:17 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2008-07-31 12:49:01 UTC
Scenario:
- Create shell script (.sh)
- Call context menu on this file and select 'Run'
==>
java.lang.NullPointerException
	at org.netbeans.modules.cnd.api.compilers.CompilerSetManager.init(CompilerSetManager.java:222)
	at org.netbeans.modules.cnd.api.compilers.CompilerSetManager.<init>(CompilerSetManager.java:211)
	at org.netbeans.modules.cnd.api.compilers.CompilerSetManager.getDefault(CompilerSetManager.java:152)
	at org.netbeans.modules.cnd.api.utils.PlatformInfo.getDefault(PlatformInfo.java:270)
	at org.netbeans.modules.cnd.remote.mapper.HostMappingsAnalyzer.<init>(HostMappingsAnalyzer.java:62)
	at org.netbeans.modules.cnd.remote.mapper.HostMappingsAnalyzer.<init>(HostMappingsAnalyzer.java:58)
	at org.netbeans.modules.cnd.remote.mapper.RemotePathMap.init(RemotePathMap.java:110)
	at org.netbeans.modules.cnd.remote.mapper.RemotePathMap.<init>(RemotePathMap.java:73)
	at org.netbeans.modules.cnd.remote.mapper.RemotePathMap.getMapper(RemotePathMap.java:65)
	at org.netbeans.modules.cnd.remote.mapper.RemoteHostInfoProvider.getMapper(RemoteHostInfoProvider.java:56)
	at org.netbeans.modules.cnd.api.remote.HostInfoProvider$DefaultProvider.getMapper(HostInfoProvider.java:97)
	at org.netbeans.modules.cnd.api.execution.NativeExecutor.executionStarted(NativeExecutor.java:274)
	at org.netbeans.modules.cnd.api.execution.NativeExecutor.run(NativeExecutor.java:204)
[catch] at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151)
Comment 2 Quality Engineering 2008-08-01 04:17:34 UTC
Integrated into 'main-golden', available in build *200808010201* on http://bits.netbeans.org/dev/nightly/
Changeset: http://hg.netbeans.org/main/rev/82d46ef8a88a
User: Sergey Grinev <sergius@netbeans.org>
Log: fixed #142396 NPE appears when user runs shell script; Make script is fixed too.