Commit 58a625c9 authored by Luna Riegel's avatar Luna Riegel
Browse files

Fix: Add non-null check for file

parent 142e750d
Pipeline #12025 passed with stage
in 2 minutes and 17 seconds
...@@ -75,6 +75,9 @@ public class CityDoctorModel { ...@@ -75,6 +75,9 @@ public class CityDoctorModel {
if (config == null) { if (config == null) {
throw new IllegalArgumentException("Parser configuration may not be null"); throw new IllegalArgumentException("Parser configuration may not be null");
} }
if( file == null ) {
throw new IllegalArgumentException("File may not be null");
}
this.fileName = file.getName(); this.fileName = file.getName();
this.config = config; this.config = config;
this.file = file; this.file = file;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment