From 4bddd4b3d3d0c022ca91a22f03438ce342a4c42e Mon Sep 17 00:00:00 2001 From: Yinnii Date: Fri, 8 Dec 2023 11:53:51 +0100 Subject: [PATCH] initialize hashmap --- .../java/i5/las2peer/services/openAIService/OpenAIService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openai-service/src/main/java/i5/las2peer/services/openAIService/OpenAIService.java b/openai-service/src/main/java/i5/las2peer/services/openAIService/OpenAIService.java index b28035f..62e1b77 100644 --- a/openai-service/src/main/java/i5/las2peer/services/openAIService/OpenAIService.java +++ b/openai-service/src/main/java/i5/las2peer/services/openAIService/OpenAIService.java @@ -119,7 +119,7 @@ @ServicePath("/openai") // TODO Your own service class public class OpenAIService extends RESTService { - private static HashMap isActive = null; + private static HashMap isActive = new HashMap(); EncodingRegistry registry = Encodings.newDefaultEncodingRegistry(); Encoding encoding = registry.getEncoding(EncodingType.CL100K_BASE);