diff --git a/OsmAnd-java/src/net/osmand/plus/voice/AbstractPrologCommandPlayer.java b/OsmAnd-java/src/net/osmand/plus/voice/AbstractPrologCommandPlayer.java index df4abf1109..130cd5cf3c 100644 --- a/OsmAnd-java/src/net/osmand/plus/voice/AbstractPrologCommandPlayer.java +++ b/OsmAnd-java/src/net/osmand/plus/voice/AbstractPrologCommandPlayer.java @@ -150,6 +150,9 @@ public abstract class AbstractPrologCommandPlayer implements CommandPlayer { Struct list = new Struct(listCmd.toArray(new Term[listCmd.size()])); Var result = new Var("RESULT"); //$NON-NLS-1$ List files = new ArrayList(); + if(prologSystem == null) { + return files; + } SolveInfo res = prologSystem.solve(new Struct(P_RESOLVE, list, result)); if (res.isSuccess()) {