avoid NPE when invite isn't only thing passed

This commit is contained in:
Eric House 2019-09-17 07:47:13 +03:00
parent f12531e40b
commit 7fd366c2d9

View file

@ -2356,7 +2356,7 @@ public class GamesListDelegate extends ListDelegateBase
String data = NFCUtils.getFromIntent( intent ); String data = NFCUtils.getFromIntent( intent );
if ( null != data ) { if ( null != data ) {
NetLaunchInfo nli = NetLaunchInfo.makeFrom( m_activity, data ); NetLaunchInfo nli = NetLaunchInfo.makeFrom( m_activity, data );
if ( nli.isValid() ) { if ( null != nli && nli.isValid() ) {
startNewNetGame( nli ); startNewNetGame( nli );
result = true; result = true;
} }