0

I am calling a fragment class from my activity class through intent but it is throwing exception

boolean java.lang.String on a null object reference

Here is my code :

    @Override
    protected void onPostExecute(String result) {

         if (result.equals("JobCancelled")) {

            fragment = new MyOrdersFragment();
             getSupportFragmentManager().beginTransaction()
                     .replace(R.id.frame, fragment, fragment.getClass().getSimpleName()).addToBackStack(null).commit();

         }

            pdilog.dismiss();
        super.onPostExecute(result);
Monish Kamble
  • 1,478
  • 1
  • 15
  • 28
neha
  • 107
  • 2
  • 11

0 Answers0