Skip to content

Commit

Permalink
Solved NullPointException on start
Browse files Browse the repository at this point in the history
  • Loading branch information
haseebpvt committed Oct 10, 2017
1 parent a95fa03 commit 0f2b2cf
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ public void onActivityCreated(Bundle savedInstanceState) {
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {

ulr = webView.getUrl();
try {
ulr = webView.getUrl();
} catch (Exception e) {
e.printStackTrace();
}

View v = inflater.inflate(R.layout.fragment_one, container, false);
WebView website = (WebView) v.findViewById(R.id.website);
Expand Down

0 comments on commit 0f2b2cf

Please sign in to comment.