This is an automated email from the ASF dual-hosted git repository.

leonbao pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git


The following commit(s) were added to refs/heads/dev by this push:
     new bf8e9b5  [UI] null pointer exception (#6325)
bf8e9b5 is described below

commit bf8e9b57214e40f059082bd28a79040ef9679acf
Author: Wangyizhi1 <[email protected]>
AuthorDate: Fri Sep 24 15:44:02 2021 +0800

    [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 6e09918e..6260d56 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 @@
             </el-select>
           </template>
         </m-list-box-f>
-        <div  class="alertForm">
+        <div class="alertForm">
           <template>
             <form-create v-model="$f" :rule="rule" :option="{submitBtn:false}" 
size="mini"></form-create>
           </template>
@@ -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 || '')

Reply via email to