Skip to content

Commit 3e5f077

Browse files
authored
Set default values for variables and headers in Properties to prevent null value issues
1 parent bc7d3aa commit 3e5f077

File tree

1 file changed

+2
-2
lines changed
  • graphql-graphiql-spring-boot-starter/src/main/java/ru/sadv1r/spring/graphql/editor/graphiql/configuration

1 file changed

+2
-2
lines changed

graphql-graphiql-spring-boot-starter/src/main/java/ru/sadv1r/spring/graphql/editor/graphiql/configuration/GraphiqlProperties.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ public class GraphiqlProperties {
2828

2929
private DefaultEditorToolsVisibility defaultEditorToolsVisibility = DefaultEditorToolsVisibility.SHOWN;
3030

31-
private Map<String, String> variables;
31+
private Map<String, String> variables = Map.of();
3232

33-
private Map<String, String> headers;
33+
private Map<String, String> headers = Map.of();
3434

3535
private Set<Plugin> plugins = Set.of();
3636

0 commit comments

Comments
 (0)