Merge pull request #8714 from osmandapp/minor_fixes

Fix possible npe
This commit is contained in:
Vitaliy 2020-03-26 12:05:31 +02:00 committed by GitHub
commit 0f1af3d3b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -182,7 +182,7 @@ public class QuickActionRegistry {
Type type = new TypeToken<List<QuickAction>>() {
}.getType();
List<QuickAction> quickActions = gson.fromJson(json, type);
List<QuickAction> rquickActions = new ArrayList<>(quickActions.size());
List<QuickAction> rquickActions = new ArrayList<>();
if (quickActions != null) {
for (QuickAction qa : quickActions) {
if (qa != null) {