Skip to content

Commit

Permalink
Catch null formPath (getodk#3020)
Browse files Browse the repository at this point in the history
  • Loading branch information
grzesiek2010 authored and lognaturel committed May 9, 2019
1 parent 11938d4 commit 4058e27
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,12 @@ protected FECWrapper doInBackground(String... path) {
errorMsg = null;

final String formPath = path[0];
if (formPath == null) {
Timber.e("formPath is null");
errorMsg = "formPath is null, please post on the forum with a description of what you were doing when this happened.";
return null;
}

final File formXml = new File(formPath);
final File formMediaDir = FileUtils.getFormMediaDir(formXml);

Expand Down

0 comments on commit 4058e27

Please sign in to comment.