ddarriba / jmodeltest2

Automatically exported from code.google.com/p/jmodeltest2
GNU General Public License v3.0
74 stars 47 forks source link

checkpointing default #29

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Don't set checkpointing configuration option in conf/jmodeltest.conf
2. run jmodeltest in a way that isCkpEnabled() is run

What is the expected output? What do you see instead?

Exception is raised because isCkpEnabled calls getProperty(CKP_LOG).
Since there is not a checkpointing option set in the config file, getProperty 
returns null which in turn ends up in a null pointer exception.

What version of the product are you using? On what operating system?
Effects all OS
Latest source as well as 2.1.4

Please provide any additional information below.

You can either implement a configuration check or you can make a custom 
exception that is raised when null is returned from trying to gather a property 
value from the config file

Original issue reported on code.google.com by valla...@gmail.com on 15 Sep 2014 at 1:21

GoogleCodeExporter commented 9 years ago
Thank you for the report! I will decide what is the best choice for a fix and 
check also the whole configuration file.

Original comment by DiegoDL84 on 17 Sep 2014 at 9:18

GoogleCodeExporter commented 9 years ago

Original comment by DiegoDL84 on 19 Nov 2014 at 5:29