Skip to content

Commit

Permalink
Ensure scope exists
Browse files Browse the repository at this point in the history
  • Loading branch information
JaroslavTulach committed Jul 12, 2022
1 parent e9b0800 commit fc2dca2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -482,9 +482,9 @@ public Optional<AtomConstructor> getDateConstructor() {
ensureModuleIsLoaded(stdDateModuleName);
Optional<Module> dateModule = findModule(stdDateModuleName);
if (dateModule.isPresent()) {
date =
Optional.ofNullable(
dateModule.get().getScope().getConstructors().get(stdDateConstructorName));
final Module m = dateModule.get();
m.ensureScopeExists();
date = Optional.ofNullable(m.getScope().getConstructors().get(stdDateConstructorName));
} else {
date = Optional.empty();
}
Expand Down

0 comments on commit fc2dca2

Please sign in to comment.