commit | 2fd5e5a94dacb1bb6d88d44ab45470f091507ef8 | [log] [tgz] |
---|---|---|
author | gkessler <gkessler> | Thu Sep 04 06:00:08 2008 +0000 |
committer | gkessler <gkessler> | Thu Sep 04 06:00:08 2008 +0000 |
tree | 0c0501bf421a63904be24a2c0f7205d69906f008 | |
parent | aa43c77512fb091f88b0b8a86de9e9d24b844ae1 [diff] |
[243614] Intermittent Metadata Model Loading issues in Automated Tests - fix for JUnit failure
diff --git a/jsf/plugins/org.eclipse.jst.jsf.common/src/org/eclipse/jst/jsf/common/metadata/internal/ModelKeyDescriptor.java b/jsf/plugins/org.eclipse.jst.jsf.common/src/org/eclipse/jst/jsf/common/metadata/internal/ModelKeyDescriptor.java index 381da33..dda1cd4 100644 --- a/jsf/plugins/org.eclipse.jst.jsf.common/src/org/eclipse/jst/jsf/common/metadata/internal/ModelKeyDescriptor.java +++ b/jsf/plugins/org.eclipse.jst.jsf.common/src/org/eclipse/jst/jsf/common/metadata/internal/ModelKeyDescriptor.java
@@ -33,10 +33,11 @@ this.project = project; this.domain = domain; this.uri = uri; - StringBuffer buf = new StringBuffer(project.getName()); - buf.append(":"); + String proj = project != null ? project.getName() : "Null"; //$NON-NLS-1$ + StringBuffer buf = new StringBuffer(proj); + buf.append(":"); //$NON-NLS-1$ buf.append(domain); - buf.append(":"); + buf.append(":"); //$NON-NLS-1$ buf.append(uri); key = buf.toString(); }