Fix NullPointerException if no report exist for this app
This commit is contained in:
parent
b601aafce7
commit
34ae578836
|
@ -81,7 +81,8 @@ public class MainActivity extends AppCompatActivity {
|
|||
model.report = DatabaseManager.getInstance(MainActivity.this).getReportFor(model.packageName, model.versionCode, model.source);
|
||||
else
|
||||
model.report = DatabaseManager.getInstance(MainActivity.this).getReportFor(model.packageName,model.versionName,model.source);
|
||||
model.trackers = DatabaseManager.getInstance(MainActivity.this).getTrackers(model.report.trackers);
|
||||
if(model.report != null)
|
||||
model.trackers = DatabaseManager.getInstance(MainActivity.this).getTrackers(model.report.trackers);
|
||||
}
|
||||
updatable.onUpdateComplete();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue