fix NPE on clean install

This commit is contained in:
Eric House 2015-07-22 07:56:34 -07:00
parent 1d5249f139
commit b48f83ace4

View file

@ -65,7 +65,7 @@ public class DevID {
public static String getRelayDevID( Context context, boolean insistAckd ) public static String getRelayDevID( Context context, boolean insistAckd )
{ {
String result = getRelayDevID( context ); String result = getRelayDevID( context );
if ( insistAckd && 0 < result.length() if ( insistAckd && null != result && 0 < result.length()
&& ! DBUtils.getBoolFor( context, DEVID_ACK_KEY, false ) ) { && ! DBUtils.getBoolFor( context, DEVID_ACK_KEY, false ) ) {
result = null; result = null;
} }