don't create obits for apps that don't have relayIDs (and presumably

never connected.)
This commit is contained in:
Eric House 2012-09-20 07:45:04 -07:00
parent 96e277c7ba
commit c76c5f5868

View file

@ -887,9 +887,11 @@ public class GameUtils {
private static void tellRelayDied( Context context, GameSummary summary,
boolean informNow )
{
DBUtils.addDeceased( context, summary.relayID, summary.seed );
if ( informNow ) {
NetUtils.informOfDeaths( context );
if ( null != summary.relayID ) {
DBUtils.addDeceased( context, summary.relayID, summary.seed );
if ( informNow ) {
NetUtils.informOfDeaths( context );
}
}
}