Skip to content

Commit fb06082

Browse files
committed
Fix a NPE in offline mode
1 parent 0f68961 commit fb06082

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

WordPress/src/main/java/org/wordpress/android/ui/WPWebViewActivity.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,10 @@ private void showSubtitle(ActionBar actionBar) {
249249
}
250250

251251
String originalUrl = extras.getString(URL_TO_LOAD);
252-
Uri uri = Uri.parse(originalUrl);
253-
actionBar.setSubtitle(uri.getHost());
252+
if (originalUrl != null) {
253+
Uri uri = Uri.parse(originalUrl);
254+
actionBar.setSubtitle(uri.getHost());
255+
}
254256
}
255257

256258
private void initRetryButton() {

0 commit comments

Comments
 (0)