Title: [714] trunk/qdox/src/java/com/thoughtworks/qdox/model/TypeVariable.java: potential NPE in TypeVariable.getValue() fixed
Revision
714
Author
rfscholte
Date
2010-03-10 05:27:54 -0600 (Wed, 10 Mar 2010)

Log Message

potential NPE in TypeVariable.getValue() fixed

Modified Paths


Diff

Modified: trunk/qdox/src/java/com/thoughtworks/qdox/model/TypeVariable.java (713 => 714)

--- trunk/qdox/src/java/com/thoughtworks/qdox/model/TypeVariable.java	2010-03-09 19:35:55 UTC (rev 713)
+++ trunk/qdox/src/java/com/thoughtworks/qdox/model/TypeVariable.java	2010-03-10 11:27:54 UTC (rev 714)
@@ -30,7 +30,7 @@
 	
 	
 	public String getValue() {
-		return bounds[0].getValue();
+		return (bounds == null || bounds.length == 0 ? ""  : bounds[0].getValue());
 	}
 	
 	public String getGenericValue() {


To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email

Reply via email to