Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Jaun2013-06-28 14:52:03 +0000
committerChris Jaun2013-06-28 14:52:03 +0000
commita1079c3c41680293060bb3793eb9802aa7517a81 (patch)
treeee04381c5a0fc194c6769b0c297e867f955a3a6c
parentcaadd582212fd7b22fe88197cff1ac2098ff1721 (diff)
downloadwebtools.jsdt.core-a1079c3c41680293060bb3793eb9802aa7517a81.tar.gz
webtools.jsdt.core-a1079c3c41680293060bb3793eb9802aa7517a81.tar.xz
webtools.jsdt.core-a1079c3c41680293060bb3793eb9802aa7517a81.zip
Null check to fix Bug 402623
-rw-r--r--bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/internal/oaametadata/MetadataReader.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/internal/oaametadata/MetadataReader.java b/bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/internal/oaametadata/MetadataReader.java
index 861188b0..4deda6d5 100644
--- a/bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/internal/oaametadata/MetadataReader.java
+++ b/bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/internal/oaametadata/MetadataReader.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2011 IBM Corporation and others.
+ * Copyright (c) 2005, 2013 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -722,7 +722,10 @@ public class MetadataReader extends DefaultHandler implements IOAAMetaDataConsta
private ArrayList getCollection(String tagClass) {
- ArrayList list = (ArrayList)this.collections.get(tagClass);
+ ArrayList list = null;
+ if(this.collections != null) {
+ list = (ArrayList)this.collections.get(tagClass);
+ }
if (list==null)
list=EMPTY_LIST;
return list;

Back to the top