java.lang.NullPointerException: Attempt to invoke virtual method 'android.support.v4.app.FragmentTransaction android.support.v4.app.FragmentManager.beginTransaction()' on a null object reference

Stack Overflow | Dad | 2 weeks ago
  1. 0

    Android Fragment results in NPE "Attempt to invoke virtual method" error

    Stack Overflow | 2 weeks ago | Dad
    java.lang.NullPointerException: Attempt to invoke virtual method 'android.support.v4.app.FragmentTransaction android.support.v4.app.FragmentManager.beginTransaction()' on a null object reference
  2. 0

    GitHub comment 14#255112646

    GitHub | 3 months ago | dobeeisfree
    java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object java.lang.Class.newInstance()' on a null object reference
  3. 0

    java.lang.NullPointerException with ImageSwitcher

    Stack Overflow | 2 months ago | Luis
    java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ImageView.setImageURI(android.net.Uri)' on a null object reference
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Android logging out of Google account from navigation drawer

    Stack Overflow | 1 year ago | Siemen Gijbels
    java.lang.NullPointerException: Attempt to invoke virtual method 'boolean com.google.android.gms.common.api.GoogleApiClient.isConnected()' on a null object reference
  6. 0

    Can't able to add Expandable ListView to a Fragment

    Stack Overflow | 8 months ago | Aakash Thakur
    java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.app.Activity.findViewById(int)' on a null object reference

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'android.support.v4.app.FragmentTransaction android.support.v4.app.FragmentManager.beginTransaction()' on a null object reference

      at com.munz.lop.HomeFragment.<init>()
    2. com.munz.lop
      SliderActivity.onNavigationItemSelected
      1. com.munz.lop.HomeFragment.<init>(HomeFragment.java:32)
      2. com.munz.lop.SliderActivity.onNavigationItemSelected(SliderActivity.java:100)
      2 frames
    3. android.support.design
      NavigationView$1.onMenuItemSelected
      1. android.support.design.widget.NavigationView$1.onMenuItemSelected(NavigationView.java:150)
      1 frame
    4. android.support.v7
      MenuBuilder.performItemAction
      1. android.support.v7.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:811)
      2. android.support.v7.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:152)
      3. android.support.v7.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:958)
      3 frames
    5. android.support.design
      NavigationMenuPresenter$1.onClick
      1. android.support.design.internal.NavigationMenuPresenter$1.onClick(NavigationMenuPresenter.java:308)
      1 frame
    6. Android Platform
      ActivityThread.main
      1. android.view.View.performClick(View.java:5716)
      2. android.view.View$PerformClick.run(View.java:22596)
      3. android.os.Handler.handleCallback(Handler.java:739)
      4. android.os.Handler.dispatchMessage(Handler.java:95)
      5. android.os.Looper.loop(Looper.java:148)
      6. android.app.ActivityThread.main(ActivityThread.java:7325)
      6 frames
    7. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    8. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
      2 frames