Merging the necessary fix for 0.8.1 into default branch
authorJaroslav Tulach <jtulach@netbeans.org>
Mon, 19 May 2014 17:44:22 +0200
changeset 6637db7afe68213
parent 661 5c1855e13966
parent 662 1c26fa21a8cd
child 664 c80b87c99b32
Merging the necessary fix for 0.8.1 into default branch
     1.1 --- a/boot/src/main/java/net/java/html/boot/BrowserBuilder.java	Mon May 19 13:59:27 2014 +0200
     1.2 +++ b/boot/src/main/java/net/java/html/boot/BrowserBuilder.java	Mon May 19 17:44:22 2014 +0200
     1.3 @@ -336,6 +336,7 @@
     1.4                                  Method m = newClazz.getMethod(methodName);
     1.5                                  FnContext.currentPresenter(currentP);
     1.6                                  m.invoke(null);
     1.7 +                                firstError = null;
     1.8                                  break INIT;
     1.9                              } catch (Throwable ex) {
    1.10                                  firstError = ex;
    1.11 @@ -347,6 +348,7 @@
    1.12                              Method m = newClazz.getMethod(methodName, String[].class);
    1.13                              FnContext.currentPresenter(currentP);
    1.14                              m.invoke(m, (Object) methodArgs);
    1.15 +                            firstError = null;
    1.16                          } catch (Throwable ex) {
    1.17                              LOG.log(Level.SEVERE, "Can't call " + methodName + " with args " + Arrays.toString(methodArgs), ex);
    1.18                          } finally {