assert non-0 lang code

This commit is contained in:
Eric House 2012-10-25 07:10:54 -07:00
parent 9bb8c9cddf
commit b40e9b7928

View file

@ -293,7 +293,9 @@ Java_org_eehouse_android_xw4_jni_XwJNI_dict_1getInfo
jDictBytes, jpath, NULL, check ); jDictBytes, jpath, NULL, check );
if ( NULL != dict ) { if ( NULL != dict ) {
if ( NULL != jinfo ) { if ( NULL != jinfo ) {
setInt( env, jinfo, "langCode", dict_getLangCode( dict ) ); XP_LangCode code = dict_getLangCode( dict );
XP_ASSERT( 0 < code );
setInt( env, jinfo, "langCode", code );
setInt( env, jinfo, "wordCount", dict_getWordCount( dict ) ); setInt( env, jinfo, "wordCount", dict_getWordCount( dict ) );
setString( env, jinfo, "md5Sum", dict_getMd5Sum( dict ) ); setString( env, jinfo, "md5Sum", dict_getMd5Sum( dict ) );
} }