diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/DwnldDelegate.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/DwnldDelegate.java index 91c854349..dbf76bc52 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/DwnldDelegate.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/DwnldDelegate.java @@ -326,11 +326,13 @@ public class DwnldDelegate extends ListDelegateBase { s_listeners.remove( url ); } } - String name = ld.m_name; - if ( null == name ) { - name = uri.toString(); + if ( null != ld ) { + String name = ld.m_name; + if ( null == name ) { + name = uri.toString(); + } + ld.m_lstnr.downloadFinished( name, success ); } - ld.m_lstnr.downloadFinished( name, success ); } }