Skip to content

Commit

Permalink
Merge pull request #196 from entur/system-mapper-npe
Browse files Browse the repository at this point in the history
Fix NPE in SystemMapper
  • Loading branch information
testower authored Aug 3, 2023
2 parents d2001d9 + ad21614 commit 1d89afa
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,11 @@ public System mapSystem(GBFSData systemInformation, FeedProvider feedProvider) {
system.setPhoneNumber(systemInformation.getPhoneNumber());
system.setEmail(systemInformation.getEmail());
system.setFeedContactEmail(system.getFeedContactEmail());
system.setTimezone(systemInformation.getTimezone().value());
system.setTimezone(
systemInformation.getTimezone() != null
? systemInformation.getTimezone().value()
: null
);
system.setLicenseUrl(systemInformation.getLicenseUrl());
system.setBrandAssets(mapBrandAssets(systemInformation.getBrandAssets()));
system.setTermsUrl(systemInformation.getTermsUrl());
Expand Down

0 comments on commit 1d89afa

Please sign in to comment.