]> source.dussan.org Git - gwtquery.git/commitdiff
Fix NPE when plugin does not have Lazy implementation
authorManuel Carrasco Moñino <manuel.carrasco.m@gmail.com>
Fri, 1 Nov 2013 11:07:11 +0000 (12:07 +0100)
committerManuel Carrasco Moñino <manuel.carrasco.m@gmail.com>
Fri, 1 Nov 2013 11:07:11 +0000 (12:07 +0100)
gwtquery-core/src/main/java/com/google/gwt/query/rebind/LazyGenerator.java

index 504fb221d557fdf48e72877d610036314e0a393d..8063b79e97fa27c3e3ae83ce503e1c36d7f38c79 100644 (file)
@@ -63,6 +63,8 @@ public class LazyGenerator extends Generator {
         break;
       }
     }
+    
+    if (targetType == null) return null;
 
     assert targetType != null : "Parameter of Lazy<T> not found";
     String genClass = targetType.getPackage().getName() + "."