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.
Build: NetBeans IDE Dev (Build 110304-092d6bf19c28) VM: Java HotSpot(TM) Server VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03 OS: SunOS User Comments: vkvashin: NPE occurred when creating a simple project based on existing sources, it had only two files: Makefile and test_io.c, below is the files content ---------- Makefile: ---------- test.exe: gcc -g -o test_io test_io.c clean: rm -f test_io ---------- test_io.c ---------- #include <stdio.h> void go(); int main(int argc, char**argv) { go(); return 0; } void go() { int i; printf("Hello!\n"); char *prompt = "\nType a string (or 'q' when done) >>>\n"; for (i = 0; i < 25; i++) { char line[132]; if (feof(stdin)) break; printf(prompt); fflush(stdout); scanf("%s", line); printf("Read: %s\n", line); if (line[0] == 'q' || line[0] == 'Q') break; } } Stacktrace: java.lang.NullPointerException at org.netbeans.modules.nativeexecution.NativeProcessInfo.setArguments(NativeProcessInfo.java:173) at org.netbeans.modules.nativeexecution.api.NativeProcessBuilder.setArguments(NativeProcessBuilder.java:267) at org.netbeans.modules.nativeexecution.api.util.HostInfoUtils.fileExists(HostInfoUtils.java:113) at org.netbeans.modules.cnd.discovery.projectimport.ImportProject$5.executionFinished(ImportProject.java:859) at org.netbeans.modules.cnd.actions.AbstractExecutorRunAction$ProcessChangeListener.run(AbstractExecutorRunAction.java:564) at org.netbeans.modules.nativeexecution.api.execution.NativeExecutionService$PostRunnable.run(NativeExecutionService.java:344)
Created attachment 106730 [details] stacktrace
I've got this again, on a different project. AFAIU, the reason is in org.netbeans.modules.cnd.discovery.projectimport.ImportProject$5.executionFinished(ImportProject.java:859) that passes null argument
fixed, change set: http://hg.netbeans.org/cnd-main/rev/3dc43574b63b
Integrated into 'main-golden', will be available in build *201103060000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/3dc43574b63b User: Alexander Simon <alexvsimon@netbeans.org> Log: fixed Bug #196327 NullPointerException at org.netbeans.modules.nativeexecution.NativeProcessInfo.setArguments