Author: scabanovich
Date: 2007-07-16 11:45:10 -0400 (Mon, 16 Jul 2007)
New Revision: 2446
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/scanner/java/ComponentBuilder.java
Log:
EXIN-217 Null pointer in ComponentBuilder fixed
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/scanner/java/ComponentBuilder.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/scanner/java/ComponentBuilder.java 2007-07-16
15:16:18 UTC (rev 2445)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/scanner/java/ComponentBuilder.java 2007-07-16
15:45:10 UTC (rev 2446)
@@ -73,7 +73,7 @@
void process() {
if(annotatedType == null) return;
ResolvedAnnotation[] as = annotatedType.getAnnotations();
- for (int i = 0; i < as.length; i++) {
+ if(as != null) for (int i = 0; i < as.length; i++) {
String type = as[i].getType();
if(NAME_ANNOTATION_TYPE.equals(type)) {
component.setName(ValueInfo.getValueInfo(as[i].getAnnotation(), null));
Show replies by date