Skip to main content
summaryrefslogtreecommitdiffstats
path: root/codan
diff options
context:
space:
mode:
authorAlena Laskavaia2010-05-18 22:52:53 -0400
committerAlena Laskavaia2010-05-18 22:52:53 -0400
commit8f07ba0efc304653060e1d9e8f8c3001a3d40476 (patch)
tree35381d1ed8dc0b8465e7228ca7491e3e665faf97 /codan
parent6f427a56b7923b77f9f052d4dd51d75a26ca9c3f (diff)
downloadorg.eclipse.cdt-8f07ba0efc304653060e1d9e8f8c3001a3d40476.tar.gz
org.eclipse.cdt-8f07ba0efc304653060e1d9e8f8c3001a3d40476.tar.xz
org.eclipse.cdt-8f07ba0efc304653060e1d9e8f8c3001a3d40476.zip
Corrected validation
Diffstat (limited to 'codan')
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/AbstractProblemPreference.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/AbstractProblemPreference.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/AbstractProblemPreference.java
index 0cf511b24f..ed75b37f3f 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/AbstractProblemPreference.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/AbstractProblemPreference.java
@@ -57,6 +57,8 @@ public abstract class AbstractProblemPreference implements IProblemPreference {
}
protected boolean isValidIdentifier(String id) {
+ if (id == null)
+ return false;
int n = id.length();
if (n == 0)
return false;

Back to the top