mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-29 08:34:37 +01:00
fix NPE
This commit is contained in:
parent
67bca0dd4e
commit
f3b5cbb794
1 changed files with 7 additions and 2 deletions
|
@ -263,8 +263,13 @@ public class LocUtils {
|
|||
// box.setText( str );
|
||||
} else if ( view instanceof Spinner ) {
|
||||
Spinner sp = (Spinner)view;
|
||||
String str = sp.getPrompt().toString();
|
||||
sp.setPrompt( xlateString( context, str ) );
|
||||
CharSequence prompt = sp.getPrompt();
|
||||
if ( null != prompt ) {
|
||||
String xlation = xlateString( context, prompt.toString() );
|
||||
if ( null != xlation ) {
|
||||
sp.setPrompt( xlation );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// A Spinner, for instance, ISA ViewGroup, so this is a separate test.
|
||||
|
|
Loading…
Add table
Reference in a new issue