1.1 --- a/boot/src/main/java/org/apidesign/html/boot/impl/FnContext.java Wed Nov 06 15:15:54 2013 +0100
1.2 +++ b/boot/src/main/java/org/apidesign/html/boot/impl/FnContext.java Mon Nov 25 17:23:50 2013 +0100
1.3 @@ -65,9 +65,9 @@
1.4 return prev;
1.5 }
1.6
1.7 - public static Fn.Presenter currentPresenter() {
1.8 + public static Fn.Presenter currentPresenter(boolean canReturnNull) {
1.9 Fn.Presenter p = CURRENT.get();
1.10 - if (p == null) {
1.11 + if (p == null && !canReturnNull) {
1.12 throw new IllegalStateException("No current WebView context around!");
1.13 }
1.14 return p;