mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-04 23:02:02 +01:00
return "" rather than null when there's no java class backing util --
common code is less likely to crash.
This commit is contained in:
parent
a22f50f2f6
commit
f956df853d
1 changed files with 1 additions and 1 deletions
|
@ -317,7 +317,7 @@ and_util_makeEmptyDict( XW_UtilCtxt* uc )
|
||||||
static const XP_UCHAR*
|
static const XP_UCHAR*
|
||||||
and_util_getUserString( XW_UtilCtxt* uc, XP_U16 stringCode )
|
and_util_getUserString( XW_UtilCtxt* uc, XP_U16 stringCode )
|
||||||
{
|
{
|
||||||
XP_UCHAR* result = NULL;
|
XP_UCHAR* result = "";
|
||||||
UTIL_CBK_HEADER("getUserString", "(I)Ljava/lang/String;" );
|
UTIL_CBK_HEADER("getUserString", "(I)Ljava/lang/String;" );
|
||||||
int index = stringCode - 1; /* see LocalizedStrIncludes.h */
|
int index = stringCode - 1; /* see LocalizedStrIncludes.h */
|
||||||
XP_ASSERT( index < VSIZE( util->userStrings ) );
|
XP_ASSERT( index < VSIZE( util->userStrings ) );
|
||||||
|
|
Loading…
Reference in a new issue