add nullcheck - input files without a dataset gave a nullpointer error.
style
Merge pull request #1147 from bartcharbon/master

add nullcheck - input files without a dataset gave a nullpointer error.