Skip to content

Commit

Permalink
Merge pull request #244 from egonw/fix/restorePrevBehaviour
Browse files Browse the repository at this point in the history
Restore the API behaviour: throw an exception for null input
  • Loading branch information
johnmay committed Oct 9, 2016
2 parents 6e2ca0a + 26806f2 commit 40b8dad
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ public InChIGenerator getInChIGenerator(IAtomContainer container, String options
* @throws CDKException if the generator cannot be instantiated
*/
public InChIGenerator getInChIGenerator(IAtomContainer container, List<INCHI_OPTION> options) throws CDKException {
if (options == null) throw new IllegalArgumentException("Null options");
return (new InChIGenerator(container, options, ignoreAromaticBonds));
}

Expand Down

0 comments on commit 40b8dad

Please sign in to comment.