mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-27 09:58:45 +01:00
fix NPE: scores array isn't always there
This commit is contained in:
parent
b62fcfd5ce
commit
f8d4b1fd34
1 changed files with 3 additions and 5 deletions
|
@ -213,11 +213,9 @@ public class CurGameInfo {
|
|||
{
|
||||
StringBuffer sb = new StringBuffer();
|
||||
String vsString = context.getString( R.string.vs );
|
||||
String tmp;
|
||||
int ii;
|
||||
for ( ii = 0; ; ) {
|
||||
sb.append( String.format( "%s(%d)", players[ii].name,
|
||||
summary.scores[ii] ) );
|
||||
for ( int ii = 0; ; ) {
|
||||
int score = null == summary.scores? 0 : summary.scores[ii];
|
||||
sb.append( String.format( "%s(%d)", players[ii].name, score ) );
|
||||
if ( ++ii >= nPlayers ) {
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue