1.1 --- a/javaquery/api/src/main/java/org/apidesign/bck2brwsr/htmlpage/PageProcessor.java Wed Apr 03 10:20:17 2013 +0200
1.2 +++ b/javaquery/api/src/main/java/org/apidesign/bck2brwsr/htmlpage/PageProcessor.java Wed Apr 03 18:21:42 2013 +0200
1.3 @@ -171,7 +171,7 @@
1.4 pp = ProcessPage.readPage(is);
1.5 is.close();
1.6 } catch (IOException iOException) {
1.7 - processingEnv.getMessager().printMessage(Diagnostic.Kind.ERROR, "Can't read " + p.xhtml(), e);
1.8 + processingEnv.getMessager().printMessage(Diagnostic.Kind.ERROR, "Can't read " + p.xhtml() + " as " + iOException.getMessage(), e);
1.9 ok = false;
1.10 pp = null;
1.11 }
1.12 @@ -207,7 +207,7 @@
1.13 if (!initializeOnClick(className, (TypeElement) e, w, pp)) {
1.14 ok = false;
1.15 } else {
1.16 - for (String id : pp.ids()) {
1.17 + if (pp != null) for (String id : pp.ids()) {
1.18 String tag = pp.tagNameForId(id);
1.19 String type = type(tag);
1.20 w.append(" ").append("public final ").