Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Catches the NPE from DEDUCEBonSystemTool
This works the same as if we had got a CDKException
solves bug 3215
  • Loading branch information
goglepox committed Jun 11, 2012
1 parent 374217f commit f44b469
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -36,7 +36,6 @@
import java.util.Map;
import java.util.Properties;
import java.util.Random;
import java.util.Scanner;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

Expand All @@ -50,7 +49,6 @@
import net.bioclipse.core.domain.IMolecule;
import net.bioclipse.core.domain.IMolecule.Property;
import net.bioclipse.core.domain.RecordableList;
import net.bioclipse.core.domain.SMILESMolecule;
import net.bioclipse.core.util.LogUtils;
import net.bioclipse.core.util.TimeCalculator;
import net.bioclipse.jobs.IReturner;
Expand Down Expand Up @@ -1896,6 +1894,9 @@ public List<ICDKMolecule> loadSMILESFile( InputStream contents,
catch (CDKException e) {
logger.error("Could not deduce bond orders for mol: " + mol);
}
catch (NullPointerException e) {
logger.error( "Faild to deduce bond orders for mol: " + mol );
}

//Store rest of parts as properties on mol
for (int i=1; i<headers.length;i++){
Expand Down

0 comments on commit f44b469

Please sign in to comment.