From 7fd366c2d9115354aaf8177e2506bc7c60b3a574 Mon Sep 17 00:00:00 2001 From: Eric House Date: Tue, 17 Sep 2019 07:47:13 +0300 Subject: [PATCH] avoid NPE when invite isn't only thing passed --- .../main/java/org/eehouse/android/xw4/GamesListDelegate.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/GamesListDelegate.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/GamesListDelegate.java index f8dc4dfc6..8e0feb511 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/GamesListDelegate.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/GamesListDelegate.java @@ -2356,7 +2356,7 @@ public class GamesListDelegate extends ListDelegateBase String data = NFCUtils.getFromIntent( intent ); if ( null != data ) { NetLaunchInfo nli = NetLaunchInfo.makeFrom( m_activity, data ); - if ( nli.isValid() ) { + if ( null != nli && nli.isValid() ) { startNewNetGame( nli ); result = true; }