[英]Malformed expression :“Error” when trying to retrieve value from hashmap
I am trying to initialise the value of X to be the value of a hashmap. 我正在尝试将X的值初始化为哈希图的值。
Using the the IDE debugger , I can clearly see that the key-value of the hashmap has been initialised 使用IDE调试器,我可以清楚地看到hashmap的键值已被初始化
However when i hover over the value of "secondcol" , i get the following 但是,当我将鼠标悬停在“ secondcol”的值上时,得到以下内容
I don't understand how it is that the hashmap shows that the value has been initialised however the "secondcol" shows a malformed expression. 我不明白哈希图显示值已初始化,但是“ secondcol”显示格式错误的表达式。
Moving on to the next step will cause a Null PointerException Error 进行下一步将导致Null PointerException错误
What is happening and how do i resolve this issue ?? 发生了什么事,我该如何解决这个问题?
From the debugger it looks like the code should be 从调试器看起来应该是代码
=CurrentPeerNode.ftable.table.get(i).value.secondcol
and 和
=CurrentPeerNode.ftable.table.get(i).value.thirdcol
. =CurrentPeerNode.ftable.table.get(i).value.thirdcol
。
(You were missing the .value) (您缺少.value)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.