mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-29 08:34:37 +01:00
fix NPE reported by crittercism
Not sure why it's happening, but testing and dropping is a fine fix.
This commit is contained in:
parent
5e90ed0073
commit
bd2fbdeb88
1 changed files with 5 additions and 3 deletions
|
@ -965,9 +965,11 @@ public class DlgDelegate {
|
|||
Dialog result = null;
|
||||
DlgID dlgID = DlgID.values()[id];
|
||||
WeakReference<DelegateBase> ref = s_pendings.get( dlgID );
|
||||
DelegateBase dlgt = ref.get();
|
||||
if ( null != dlgt ) {
|
||||
result = dlgt.onCreateDialog( id );
|
||||
if ( null != ref ) {
|
||||
DelegateBase dlgt = ref.get();
|
||||
if ( null != dlgt ) {
|
||||
result = dlgt.onCreateDialog( id );
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue