Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-patch] Fix for [Bug 52009]: NPE in SettingsBlock of Standard Make project properties

Tested on Windows, no JUnit tests created.

Thanks,
Vmir

Index: SettingsBlock.java
===================================================================
retrieving revision 1.4
diff -u -r1.4 SettingsBlock.java
--- SettingsBlock.java	13 Jan 2004 18:54:39 -0000	1.4
+++ SettingsBlock.java	13 Feb 2004 21:18:04 -0000
@@ -91,6 +91,7 @@
 		if (fBuildInfo.isStopOnError()) {
 			stopOnErrorButton.setSelection(true);
 		}
+		stopOnErrorButton.setEnabled(fBuildInfo.isDefaultBuildCmd());
 	}
 
 	protected void createBuildCmdControls(Composite parent) {
@@ -142,8 +143,6 @@
 		}
 		if (fBuildInfo.isDefaultBuildCmd()) {
 			buildCommand.setEnabled(false);
-		} else {
-			stopOnErrorButton.setEnabled(false);
 		}
 		defButton.setSelection(fBuildInfo.isDefaultBuildCmd());
 	}

Back to the top