llevo desarrollando una app, funciona correcto en lo que necesito, es un parser de noticias, el problema ocurre cuando quiero verificar la conexion a internet, con internet funciona bien. Pero me desconecto y la abro, pero se detiene, en el log me muestra FATAL EXCEPTION: main Process: com.tucuenca.com.tucuenca3, PID: 30480 java.lang.NullPointerException: Attempt to invoke interface method 'int java.util.List.size()' on a null object reference at com.tucuenca.com.tucuenca3.adaptadorNoticia.getItemCount(adaptadorNoticia.java:74) at android.support.v7.widget.RecyclerView.onMeasure(RecyclerView.java:2556) at android.view.View.measure(View.java:17998) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5698) at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1692) at android.widget.LinearLayout.measureVertical(LinearLayout.java:760) at android.widget.LinearLayout.onMeasure(LinearLayout.java:629) at android.view.View.measure(View.java:17998) at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:846) at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:512) at android.view.View.measure(View.java:17998) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5698) at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1692) at android.widget.LinearLayout.measureVertical(LinearLayout.java:760) at android.widget.LinearLayout.onMeasure(LinearLayout.java:629) at android.view.View.measure(View.java:17998) at android.support.v4.widget.DrawerLayout.onMeasure(DrawerLayout.java:940) at android.view.View.measure(View.java:17998) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5698) at android.widget.FrameLayout.onMeasure(FrameLayout.java:465) at android.support.v7.widget.ContentFrameLayout.onMeasure(ContentFrameLayout.java:135) at android.view.View.measure(View.java:17998) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5698) at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1692) at android.widget.LinearLayout.measureVertical(LinearLayout.java:760) at android.widget.LinearLayout.onMeasure(LinearLayout.java:629) at android.view.View.measure(View.java:17998) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5698) at android.widget.FrameLayout.onMeasure(FrameLayout.java:465) at android.view.View.measure(View.java:17998) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5698) at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1692) at android.widget.LinearLayout.measureVertical(LinearLayout.java:760) at android.widget.LinearLayout.onMeasure(LinearLayout.java:629) at android.view.View.measure(View.java:17998) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5698) at android.widget.FrameLayout.onMeasure(FrameLayout.java:465) at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2732) at android.view.View.measure(View.java:17998) at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2412) at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1414) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1638) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1292) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6598) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:800) at android.view.Choreographer.doCallbacks(Choreographer.java:603) at android.view.Choreographer.doFrame(Choreographer.java:572) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:786) at android.os.Handler.handleCallback(Handler.java:815) at android.os.Handler.dispatchMessage(Handler.java:104) at android.os.Looper.loop(Looper.java:194) at android.app.ActivityThread.main(ActivityThread.java:5717) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:960) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755) Por ahora solo queria me muestre que tiene o no acceso a internet. Saludos.