WP8 Deserialization errors Potential Fix

NodeCanvas Forums Support WP8 Deserialization errors Potential Fix

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #9626
    pjohalloran
    Participant

    Hi Gavalakis,

    I think i have a fix for the WP8 issue. See code below in Task.agentIsOverride I check for “&& !overrideAgent.isNull” also. On WP8, overrideAgent is serialized out as null but when you inspect the value it has a value of “<b>NULL</b>”. I think the issue is the fact that TaskAgent inherits from BBParameter and overrides the value property. On all other platforms, the value is null, on WP8 the value is “<b>NULL</b>”. I guess maybe a mono bug or maybe a .NET/mono implementation difference??

    As overrideAgent is “null” in the JSON and because of this bug it thinks it has an agent and fails to cast null to a type Component later on.

    I can confirm my BT is working now with that fix at least!!

    Would you be able to look over this potential fix and see if its good? Maybe you could have a UNITY_METRO defines here and not have fix effect other platforms?

    Thanks,
    PJ

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.