Im trying to display my result in asynctask using webview but i got nullpointExc any help will be appreciated.
 @Override
    //Display my result via webview
    protected void onPostExecute(String result) { //where i get my result
        setContentView(R.layout.paynamics_layout);
        WebView myweb = (WebView) view.findViewById(R.id.paynamics_site);
        myweb.loadData(result, "text/html", null); // i got error here
        myweb.canGoBack();
        super.onPostExecute(result);
    }
Here is my error
java.lang.NullPointerException: Attempt to invoke virtual method 'void android.webkit.WebView.loadData(java.lang.String, java.lang.String, java.lang.String)' on a null object reference
 
    