From bf8e9b57214e40f059082bd28a79040ef9679acf Mon Sep 17 00:00:00 2001 From: Wangyizhi1 <87303815+Wangyizhi1@users.noreply.github.com> Date: Fri, 24 Sep 2021 15:44:02 +0800 Subject: [PATCH] [UI] null pointer exception (#6325) --- .../pages/warningInstance/_source/createWarningInstance.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/warningInstance/_source/createWarningInstance.vue b/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/warningInstance/_source/createWarningInstance.vue index 6e09918eed..6260d56b67 100644 --- a/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/warningInstance/_source/createWarningInstance.vue +++ b/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/warningInstance/_source/createWarningInstance.vue @@ -55,7 +55,7 @@ -
+
@@ -127,6 +127,10 @@ if (item.title.indexOf('$t') !== -1) { item.title = this.$t(item.field) } + // fix null pointer exception + if (!item.props) { + item.props = {} + } }) }).catch(e => { this.$message.error(e.msg || '')