Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,

    Create an empty public constructor in your code.

Solutions on the web

via Stack Overflow by Alan
, 1 year ago
Unable to start activity ComponentInfo{br.unisinos.mobicine/br.unisinos.mobicine.activities.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v4.view.ViewPager.setAdapter(android.support.v4.view.PagerAdapter)' on a null object reference
via Stack Overflow by Ramón Wilhelm
, 8 months ago
Unable to start activity ComponentInfo{com.example.fdai3744.t_online20/com.example.fdai3744.t_online20.SecondActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v4.view.ViewPager.setAdapter(android.support.v4.view.PagerAdapter)' on a null object reference
via Stack Overflow by Jon Goe
, 1 month ago
Unable to start activity ComponentInfo{com.example.me.echoboard/com.example.me.echoboard.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v4.view.ViewPager.setAdapter(android.support.v4.view.PagerAdapter)' on a null object reference
via Stack Overflow by MAOL
, 1 year ago
Unable to start activity ComponentInfo{com.dummy.carrefour.mvp/com.dummy.carrefour.mvp.ui.tutorial.TutorialActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v4.view.ViewPager.setAdapter(android.support.v4.view.PagerAdapter)' on a null object reference
via Stack Overflow by Omkar
, 2 weeks ago
Unable to start activity ComponentInfo{gcoeapapers.opus.com.gcoeapapers/gcoeapapers.opus.com.gcoeapapers.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v4.view.ViewPager.setAdapter(android.support.v4.view.PagerAdapter)' on a null object reference
via GitHub by dmaglio
, 2 days ago
Unable to start activity ComponentInfo : java.lang.NullPointerException: Attempt to invoke virtual method 'void com.synnapps.carouselview.CarouselViewPager.setAdapter(android.support.v4.view.PagerAdapter)' on a null object reference
java.lang.RuntimeException: Unable to start activity ComponentInfo{br.unisinos.mobicine/br.unisinos.mobicine.activities.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v4.view.ViewPager.setAdapter(android.support.v4.view.PagerAdapter)' on a null object reference	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)