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.
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)
fixed for shell and Make files by: http://hg.netbeans.org/main?cmd=changeset;node=82d46ef8a88a http://hg.netbeans.org/main?cmd=changeset;node=db56aa51c4e7
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.