We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8234c8e + c78545e commit a03567cCopy full SHA for a03567c
marklogic-spark-api/src/main/java/com/marklogic/spark/core/classifier/TextClassifierFactory.java
@@ -32,6 +32,7 @@ public static TextClassifier newTextClassifier(Context context) {
32
33
if (context.hasOption(MOCK_CLASSIFIER_OPTION)) {
34
String mockResponse = context.getStringOption(MOCK_CLASSIFIER_OPTION);
35
+ Objects.requireNonNull(mockResponse);
36
semaphoreProxy = new MockSemaphoreProxy(mockResponse);
37
} else if (host != null && !host.trim().isEmpty()) {
38
try {
0 commit comments