Skip to content

Commit

Permalink
Restore the API behaviour: throw an exception for null input
Browse files Browse the repository at this point in the history
  • Loading branch information
egonw committed Oct 9, 2016
1 parent 02872f8 commit 26806f2
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 26806f2

Please sign in to comment.