diff --git a/WordPressUtils/src/main/java/org/wordpress/android/util/NetworkUtils.java b/WordPressUtils/src/main/java/org/wordpress/android/util/NetworkUtils.java index 1ea1a60f2d77..240c93f50e78 100644 --- a/WordPressUtils/src/main/java/org/wordpress/android/util/NetworkUtils.java +++ b/WordPressUtils/src/main/java/org/wordpress/android/util/NetworkUtils.java @@ -77,6 +77,9 @@ public static boolean isAirplaneModeOn(Context context) { * and returns false */ public static boolean checkConnection(Context context) { + if (context == null) { + return false; + } if (isNetworkAvailable(context)) { return true; }