Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CityDoctor
CityDoctor2
Commits
58a625c9
Commit
58a625c9
authored
Oct 29, 2025
by
Luna Riegel
Browse files
Fix: Add non-null check for file
parent
142e750d
Pipeline
#12025
passed with stage
in 2 minutes and 17 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CityDoctorParent/CityDoctorModel/src/main/java/de/hft/stuttgart/citydoctor2/datastructure/CityDoctorModel.java
View file @
58a625c9
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment