Skip to content

Commit 22dde4a

Browse files
committed
URL to IP converter tweaks
1 parent b6e3db8 commit 22dde4a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/src/main/java/com/truemlgpro/wifiinfo/URLtoIPActivity.java

+4
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,11 @@ public void onClick(View v) {
8686
textview_ipFromURL.setText("IP: " + ip);
8787
} catch (MalformedURLException e) {
8888
e.printStackTrace();
89+
textview_ipFromURL.setText("IP: N/A");
8990
}
9091
} catch (UnknownHostException e) {
9192
e.printStackTrace();
93+
textview_ipFromURL.setText("IP: N/A");
9294
}
9395
hideError();
9496
} else {
@@ -140,9 +142,11 @@ public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
140142
textview_ipFromURL.setText("IP: " + ip);
141143
} catch (MalformedURLException e) {
142144
e.printStackTrace();
145+
textview_ipFromURL.setText("IP: N/A");
143146
}
144147
} catch (UnknownHostException e) {
145148
e.printStackTrace();
149+
textview_ipFromURL.setText("IP: N/A");
146150
}
147151
}
148152
}

0 commit comments

Comments
 (0)