fix NPE in new logging code

This commit is contained in:
Eric House 2017-04-10 20:33:25 -07:00
parent cbac691be3
commit fdd1e5c148

View file

@ -357,7 +357,7 @@ public class MainActivity extends XWActivity
private void logPaneFragments() private void logPaneFragments()
{ {
if ( BuildConfig.DEBUG ) { if ( BuildConfig.DEBUG && null != m_root ) {
List<String> pairs = new ArrayList<>(); List<String> pairs = new ArrayList<>();
int childCount = m_root.getChildCount(); int childCount = m_root.getChildCount();
for ( int ii = 0; ii < childCount; ++ii ) { for ( int ii = 0; ii < childCount; ++ii ) {