简体   繁体   English

格式错误的表达式:尝试从哈希图检索值时出现“错误”

[英]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.

相关问题 当我尝试从 firebase 检索数据到 viewpager2 时,无法将 java.util.HashMap 类型的值转换为字符串错误 - Failed to convert value of type java.util.HashMap to String error when I'm trying to retrieve data from firebase to viewpager2 尝试从 hashmap 获取价值时,在 eclipse 中出现声纳错误 - Getting sonarlint error in eclipse while trying to get value from hashmap 无法使用HttpSession作为密钥从HashMap检索值 - Fail to retrieve value from HashMap with HttpSession as key 如何使用可选参数从HashMap中检索值 - How to retrieve a value from HashMap with optional argument 尝试复制哈希图存储时出错 - Error when trying to copy a hashmap store 尝试从数据库检索密码值时出错 - errors when trying to retrieve a password value from a database 尝试从其他类检索时的空值 - Null value when trying to retrieve from other class 为什么在尝试增加值并将其放回HashMap时会引起编译错误? - Why this raises compilation error when trying to increment the value and put it back to HashMap? 尝试检索BusinessPartnerUUID时出错 - Error when trying to retrieve BusinessPartnerUUID 尝试在Rest API上从MongoDB检索数据时出错 - Error when trying to retrieve data from mongodb on rest api
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM