Skip to content

Commit a03567c

Browse files
authored
Merge pull request #492 from marklogic/feature/more-polaris
Yet one more medium Polaris fix
2 parents 8234c8e + c78545e commit a03567c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

marklogic-spark-api/src/main/java/com/marklogic/spark/core/classifier/TextClassifierFactory.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public static TextClassifier newTextClassifier(Context context) {
3232

3333
if (context.hasOption(MOCK_CLASSIFIER_OPTION)) {
3434
String mockResponse = context.getStringOption(MOCK_CLASSIFIER_OPTION);
35+
Objects.requireNonNull(mockResponse);
3536
semaphoreProxy = new MockSemaphoreProxy(mockResponse);
3637
} else if (host != null && !host.trim().isEmpty()) {
3738
try {

0 commit comments

Comments
 (0)