menu title can be null

This commit is contained in:
Eric House 2014-04-03 22:36:47 -07:00
parent 11dabca721
commit a6954a71dc

View file

@ -60,7 +60,9 @@ public class LocUtils {
DbgUtils.logf( "xlateMenu: menu has %d items", count );
for ( int ii = 0; ii < count; ++ii ) {
MenuItem item = menu.getItem( ii );
String title = item.getTitle().toString();
CharSequence ts = item.getTitle();
if ( null != ts ) {
String title = ts.toString();
DbgUtils.logf( "xlateMenu: %d; %s", ii, title );
if ( title.startsWith( LOC_PREFIX ) ) {
String asKey = title.substring( LOC_PREFIX.length() );
@ -74,4 +76,5 @@ public class LocUtils {
}
}
}
}
}