diff --git a/robotium-solo/src/main/java/com/jayway/android/robotium/solo/ScreenshotTaker.java b/robotium-solo/src/main/java/com/jayway/android/robotium/solo/ScreenshotTaker.java
index <HASH>..<HASH> 100644
--- a/robotium-solo/src/main/java/com/jayway/android/robotium/solo/ScreenshotTaker.java
+++ b/robotium-solo/src/main/java/com/jayway/android/robotium/solo/ScreenshotTaker.java
@@ -211,10 +211,12 @@ class ScreenshotTaker {
 		Bitmap orig = view.getDrawingCache();
 		Bitmap.Config config = null;
 
-		if(orig != null) {
-			config = orig.getConfig();
+		if(orig == null) {
+			return null;
 		}
 
+		config = orig.getConfig();
+
 		if(config == null) {
 			config = Bitmap.Config.ARGB_8888;
 		}
Bugfix for issue-<I>