Permalink
Browse files

Fix to avoid possible NPE

Disable excessive printout
  • Loading branch information...
jose.pereda
jose.pereda committed Dec 9, 2018
1 parent 6d133d9 commit 8ee41c8e5267cc3fdf29a9da88766cbdc2c49420
@@ -1,4 +1,6 @@
build/
.gradle/
.nb-gradle/
app/.gradle/
app/.gradle/
scenicView.properties
.DS_Store
@@ -75,7 +75,10 @@ public void setTarget(final Object target) {
}

for (final ObservableValue ov : properties.keySet()) {
ov.addListener(propListener);
if (ov != null && propListener != null) {
ov.addListener(propListener);
}

}
}

@@ -51,7 +51,7 @@ public WindowChecker(final WindowFilter filter, final String name) {
while (running) {
onWindowsFound(windows);
try {
Logger.print("No JavaFX window found - sleeping for " + sleepTime / 1000 + " seconds");
// Logger.print("No JavaFX window found - sleeping for " + sleepTime / 1000 + " seconds");
Thread.sleep(sleepTime);
if (maxWaitTime != -1) {
currentWait += sleepTime;

0 comments on commit 8ee41c8

Please sign in to comment.