Get on hashmap returns undefined

45 views
Skip to first unread message

Thomas Lefort

unread,
Apr 17, 2017, 4:59:35 PM4/17/17
to GWT Users
I am using 2.8 and I occasionally get undefined instead of null when doing a get on a hashmap, ie when there is no maping to the key. I am wondering if this is a known bug or if I should not assume this behaviour for the hashmap get method?

Thanks!

Jens

unread,
Apr 17, 2017, 7:00:34 PM4/17/17
to GWT Users
Your java code should always check for null using == and it should just work regardless if the Javascript implementation returns undefined or null.

-- J.

Thomas Lefort

unread,
Apr 19, 2017, 8:16:39 AM4/19/17
to GWT Users
Yes, thanks. There was another issue indeed. The undefined in javascript was misleading.
Reply all
Reply to author
Forward
0 new messages