Commit 08a1d35c authored by hal's avatar hal

Merge pull request #62 from klaverty/webviewer-url-fix

Fix webviewer so that CurrentURL and CurrentPageTitle return the empty text is the viewer has not been initialized.
parents b1277d18 c1599e8f
......@@ -168,7 +168,7 @@ public final class WebViewer extends AndroidViewComponent {
"Home URL if new pages were visited by following links.",
category = PropertyCategory.BEHAVIOR)
public String CurrentUrl() {
return webview.getUrl();
return (webview.getUrl() == null) ? "" : webview.getUrl();
}
/**
......@@ -180,7 +180,7 @@ public final class WebViewer extends AndroidViewComponent {
description = "Title of the page currently viewed",
category = PropertyCategory.BEHAVIOR)
public String CurrentPageTitle() {
return webview.getTitle();
return (webview.getTitle() == null) ? "" : webview.getTitle();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment