Is the EL empty operator a safe navigation operator?

后端 未结 0 620
轮回少年
轮回少年 2021-01-12 04:30

Using this expression with empty operator will Not trigger NullPointerException if object2 is null : #{empty bean.object1.object2 ? \'-\' : bean.object1.object2}

相关标签:
回答
  • 消灭零回复
提交回复
热议问题