From 5df07b826b5a0994e6caf3b7d0c4f2b1512d8cd6 Mon Sep 17 00:00:00 2001 From: Kevin Birk Date: Thu, 26 Sep 2024 16:50:35 -0400 Subject: [PATCH] Fix NPE for tables. (#4956) --- packages/gollm/tasks/enrich_amr.py | 1 - .../uncharted/terarium/hmiserver/service/ExtractionService.java | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/gollm/tasks/enrich_amr.py b/packages/gollm/tasks/enrich_amr.py index f2b6c1332d..110b7bcbc8 100644 --- a/packages/gollm/tasks/enrich_amr.py +++ b/packages/gollm/tasks/enrich_amr.py @@ -1,6 +1,5 @@ import json import sys -from gollm.entities import ConfigureModel from gollm.openai.tool_utils import amr_enrichment_chain from taskrunner import TaskRunnerInterface diff --git a/packages/server/src/main/java/software/uncharted/terarium/hmiserver/service/ExtractionService.java b/packages/server/src/main/java/software/uncharted/terarium/hmiserver/service/ExtractionService.java index 09d4dd6f86..deb6945af2 100644 --- a/packages/server/src/main/java/software/uncharted/terarium/hmiserver/service/ExtractionService.java +++ b/packages/server/src/main/java/software/uncharted/terarium/hmiserver/service/ExtractionService.java @@ -869,7 +869,7 @@ public Future extractTextFromPDF( static class TableExtraction { - List tables; + List tables = new ArrayList<>(); } public Future extractTablesFromPDF(