don't try to sort a null array!

This commit is contained in:
Eric House 2020-09-29 07:54:39 -07:00
parent eb728e4368
commit 148286313f

View file

@ -176,7 +176,9 @@ public class XwJNI {
String[] result = null;
if ( BuildConfig.HAVE_KNOWN_PLAYERS ) {
result = kplr_getPlayers( getJNI().m_ptrGlobals );
Arrays.sort( result );
if ( null != result ) {
Arrays.sort( result );
}
}
return result;
}