The lack of dex file made the ant package task throw
an NPE.
Change-Id: Id3de0deb4ec1d6a90f0474ea09d43ddde9cbe97f
inputPaths.add(resourceInputPath);
// dex file
- inputPaths.add(new InputPath(dexFile));
+ if (dexFile != null) {
+ inputPaths.add(new InputPath(dexFile));
+ }
// zip input files
List<File> zipFiles = new ArrayList<File>();
}
public InputPath(File file, Set<String> extensionsToCheck) {
+ if (file == null) {
+ throw new RuntimeException("File in InputPath(File) can't be null");
+ }
mFile = file;
mTouchedExtensions = extensionsToCheck;
}