Skip to content

Commit

Permalink
Expose another NPE source
Browse files Browse the repository at this point in the history
Change-Id: I8a4eacd72d3da1a5de2424c50a54d8817511b2a0
  • Loading branch information
egonw committed Sep 16, 2014
1 parent 15a3f08 commit a988852
Showing 1 changed file with 8 additions and 0 deletions.
Expand Up @@ -245,6 +245,14 @@ public void testAdd_IMolecularFormula() {

}

@Test
public void testMolecularFormula_NullCharge() {
IMolecularFormula mf = getBuilder().newInstance(IMolecularFormula.class);
IMolecularFormula mf2 = getBuilder().newInstance(IMolecularFormula.class);
mf2.setCharge(0);
mf.add(mf2);
}

/**
* A unit test suite for JUnit.
*
Expand Down

0 comments on commit a988852

Please sign in to comment.