]> gitweb.fperrin.net Git - Dictionary.git/blobdiff - src/com/hughes/android/dictionary/DictionaryActivity.java
Try to fix crash.
[Dictionary.git] / src / com / hughes / android / dictionary / DictionaryActivity.java
index 4c56e48c5592353e4630a2fd6c5dfbd452fadf9e..84497e51ac205c1b233197f2a4f5de1c0a1e3840 100644 (file)
@@ -477,7 +477,7 @@ public class DictionaryActivity extends ListActivity {
   \r
   @Override\r
   protected void onListItemClick(ListView l, View v, int row, long id) {\r
-    if (clickOpensContextMenu) {\r
+    if (clickOpensContextMenu && dictRaf != null) {\r
       openContextMenu(v);\r
     }\r
   }\r