我面临的问题是偶尔Resourcenotfound/unable to 分析文件错误出现在速度页面上。
在记录之前,服务器日志中显示以下错误 resourcenotfound 异常:
“>=”操作的左侧 ($point) 具有空值。无法操作。
这里有与速度引擎相关的东西吗?
最佳答案
正如 Claude 提到的,问题出在 null
值上。
避免它,你可以先检查$points
是否为空,然后做任何你想做的......
在这里使用 #if ($!points ...)
是更好的方法...
编辑
进一步解释,您的代码可能如下所示:
## Check whether the object represented by $points is null or not
#if ($!points)
## If $points exists, then perform your checks and calculations.
#if ($points ...)
## Your business action
#end
#end
关于java - 如何解决错误 :Left side ($point) of '>=' operation has null value,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40233292/