Commit d7b88721 authored by Katie Laverty's avatar Katie Laverty

Fixed WebViewer issue of returning null

parent 135acbca
......@@ -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