summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2012-06-29 20:41:13 +0300
committerArtur Signell <artur@vaadin.com>2012-06-29 20:41:13 +0300
commitc2c1270786c04ee1bd01729f72d63a6553a0b0a7 (patch)
tree70fd71a20739b79915bf2a450710538110b779be
parente6bdeff520f6cda7eeb787572ff9f79cf00ff8dc (diff)
downloadvaadin-framework-c2c1270786c04ee1bd01729f72d63a6553a0b0a7.tar.gz
vaadin-framework-c2c1270786c04ee1bd01729f72d63a6553a0b0a7.zip
Don't throw NPE if there is no implementation (#9081)7.0.0.alpha3
-rw-r--r--src/com/vaadin/terminal/gwt/client/VConsole.java30
1 files changed, 22 insertions, 8 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/VConsole.java b/src/com/vaadin/terminal/gwt/client/VConsole.java
index dee8529a84..a221b42d67 100644
--- a/src/com/vaadin/terminal/gwt/client/VConsole.java
+++ b/src/com/vaadin/terminal/gwt/client/VConsole.java
@@ -57,35 +57,49 @@ public class VConsole {
}
public static void log(String msg) {
- impl.log(msg);
+ if (impl != null) {
+ impl.log(msg);
+ }
}
public static void log(Throwable e) {
- impl.log(e);
+ if (impl != null) {
+ impl.log(e);
+ }
}
public static void error(Throwable e) {
- impl.error(e);
+ if (impl != null) {
+ impl.error(e);
+ }
}
public static void error(String msg) {
- impl.error(msg);
+ if (impl != null) {
+ impl.error(msg);
+ }
}
public static void printObject(Object msg) {
- impl.printObject(msg);
+ if (impl != null) {
+ impl.printObject(msg);
+ }
}
public static void dirUIDL(ValueMap u, ApplicationConfiguration cnf) {
- impl.dirUIDL(u, cnf);
+ if (impl != null) {
+ impl.dirUIDL(u, cnf);
+ }
}
public static void printLayoutProblems(ValueMap meta,
ApplicationConnection applicationConnection,
Set<ComponentConnector> zeroHeightComponents,
Set<ComponentConnector> zeroWidthComponents) {
- impl.printLayoutProblems(meta, applicationConnection,
- zeroHeightComponents, zeroWidthComponents);
+ if (impl != null) {
+ impl.printLayoutProblems(meta, applicationConnection,
+ zeroHeightComponents, zeroWidthComponents);
+ }
}
}