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);