From fdd1e5c14884db1e96eb4ea770762992920a447f Mon Sep 17 00:00:00 2001 From: Eric House Date: Mon, 10 Apr 2017 20:33:25 -0700 Subject: [PATCH] fix NPE in new logging code --- .../app/src/main/java/org/eehouse/android/xw4/MainActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/MainActivity.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/MainActivity.java index 7c8ecaf9a..76e2d0f85 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/MainActivity.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/MainActivity.java @@ -357,7 +357,7 @@ public class MainActivity extends XWActivity private void logPaneFragments() { - if ( BuildConfig.DEBUG ) { + if ( BuildConfig.DEBUG && null != m_root ) { List pairs = new ArrayList<>(); int childCount = m_root.getChildCount(); for ( int ii = 0; ii < childCount; ++ii ) {