Skip to content
This repository has been archived by the owner on Mar 26, 2020. It is now read-only.

Fixed crash #274

Merged
merged 1 commit into from
Aug 23, 2016
Merged

Fixed crash #274

merged 1 commit into from
Aug 23, 2016

Conversation

konovalov-aleks
Copy link
Contributor

Djinni crashes if the options "--in-file-list ' and '--out-file-list" contains only the file names. If the path contains the folder name, the program does not crash.

For example:

djinni --idl test.djinni --list-out-files somefile.txt
Already up to date: Djinni
Parsing...
Resolving...
Generating...
Exception in thread "main" java.lang.NullPointerException
at djinni.generatorTools.package$.createFolder(generator.scala:172)
at djinni.Main$.main(Main.scala:275)
at djinni.Main.main(Main.scala)

if the path to explicitly specify a folder, then everything is OK:

djinni --idl test.djinni --list-out-files ./somefile.txt
Already up to date: Djinni
Parsing...
Resolving...
Generating...

…-list-out-files" contain only the names of files
@smarx
Copy link

smarx commented Aug 23, 2016

Automated message from Dropbox CLA bot

@konovalov-aleks, it looks like you've already signed the Dropbox CLA. Thanks!

@artwyman artwyman merged commit 74676e9 into dropbox:master Aug 23, 2016
BrassLion pushed a commit to BrassLion/djinni that referenced this pull request Nov 7, 2016
Fixed crash when in-file-list or out-file-list path is unqualified
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants