Skip to content

Commit ddfe923

Browse files
wezhangt-rufang
authored andcommitted
Fix classified Exception message factory NPE issue
1 parent 2303e8e commit ddfe923

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PluginsAndFeatures/azure-toolkit-for-intellij/src/com/microsoft/azure/hdinsight/spark/run/SparkBatchRemoteRunState.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ open class SparkBatchRemoteRunState(private val sparkSubmitModel: SparkSubmitMod
7070
consoleView!!.print("ERROR: ${messageWithType.value}\n", ConsoleViewContentType.ERROR_OUTPUT)
7171

7272
val classifiedEx = ClassifiedExceptionFactory
73-
.createClassifiedException(YarnDiagnosticsException(messageWithType.value))
73+
.createClassifiedException(YarnDiagnosticsException(messageWithType.value ?: ""))
7474
classifiedEx.logStackTrace()
7575
classifiedEx.handleByUser()
7676
}

0 commit comments

Comments
 (0)