arthas ognl map return null

76 Views Asked by At

this is a map return

@LinkedHashMap[
    @String[6]:@ChapterInfo[com.elex.billion.icefire.game.biz.model.mission.chapterMission.ChapterInfo@50d60a4a],
    @String[7]:@ChapterInfo[com.elex.billion.icefire.game.biz.model.mission.chapterMission.ChapterInfo@4a5f4b44],
    @String[8]:@ChapterInfo[com.elex.billion.icefire.game.biz.model.mission.chapterMission.ChapterInfo@2d8b8b8e],
    @String[9]:@ChapterInfo[com.elex.billion.icefire.game.biz.model.mission.chapterMission.ChapterInfo@5990bae5],
    @String[10]:@ChapterInfo[com.elex.billion.icefire.game.biz.model.mission.chapterMission.ChapterInfo@39747fc7],
    @String[11]:@ChapterInfo[com.elex.billion.icefire.game.biz.model.mission.chapterMission.ChapterInfo@94106c6],
]

but i use 'get(6)' return null. 'get(@String[6])' is a Exception.

this is my line.

ognl @com.elex.billion.icefire.game.Application@getBean(@com.elex.billion.icefire.game.biz.manager.MissionManager@class).getPlayerChapterMission(100000000000031L).getChapterId2Info().get(6)

How can i get value with a key? thanks.

1

There are 1 best solutions below

2
子今又 On
ognl @com.elex.billion.icefire.game.Application@getBean(@com.elex.billion.icefire.game.biz.manager.MissionManager@class).getPlayerChapterMission(100000000000031L).getChapterId2Info().get(\"6\")