Fix: Don't crash if an app has no categories

This commit is contained in:
Daniel Martí 2014-01-09 12:25:20 +01:00
parent 5b4c40fe07
commit c0fad0fe26

View File

@ -468,8 +468,10 @@ public class AppDetails extends ListActivity {
tv = (TextView) findViewById(R.id.license);
tv.setText(app.license);
tv = (TextView) findViewById(R.id.categories);
tv.setText(app.categories.toString().replaceAll(",",", "));
if (app.categories != null) {
tv = (TextView) findViewById(R.id.categories);
tv.setText(app.categories.toString().replaceAll(",",", "));
}
tv = (TextView) infoView.findViewById(R.id.description);