From 121d76958cf507dbcf9e9bc61d7d7f1bb3971b03 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Manuel=20Carrasco=20Mo=C3=B1ino?= Date: Fri, 1 Nov 2013 12:07:11 +0100 Subject: [PATCH] Fix NPE when plugin does not have Lazy implementation --- .../main/java/com/google/gwt/query/rebind/LazyGenerator.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/rebind/LazyGenerator.java b/gwtquery-core/src/main/java/com/google/gwt/query/rebind/LazyGenerator.java index 504fb221..8063b79e 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/rebind/LazyGenerator.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/rebind/LazyGenerator.java @@ -63,6 +63,8 @@ public class LazyGenerator extends Generator { break; } } + + if (targetType == null) return null; assert targetType != null : "Parameter of Lazy not found"; String genClass = targetType.getPackage().getName() + "." -- 2.39.5