From d4c418b4822fa0bd74e8b72233fc7abbb16c3fd5 Mon Sep 17 00:00:00 2001 From: Jo Grimstad Date: Mon, 19 Jun 2017 18:21:59 +0200 Subject: [PATCH] #414 Avoid NullPointerException when launching sub activity directly --- .../java/org/literacyapp/content/letter/LettersActivity.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/org/literacyapp/content/letter/LettersActivity.java b/app/src/main/java/org/literacyapp/content/letter/LettersActivity.java index fbeb0fa..ae1fe71 100644 --- a/app/src/main/java/org/literacyapp/content/letter/LettersActivity.java +++ b/app/src/main/java/org/literacyapp/content/letter/LettersActivity.java @@ -57,6 +57,7 @@ protected void onCreate(Bundle savedInstanceState) { letterGridLayout = (GridLayout) findViewById(R.id.letterGridLayout); + ContentProvider.initializeDb(this); List allophones = ContentProvider.getAllAllophonesOrderedByFrequency(); Log.i(getClass().getName(), "allophones: " + allophones); Log.i(getClass().getName(), "allophones.size(): " + allophones.size());