<dict>
(...)
<key>tabs</key>
<dict>
(...)
<key>tabs</key>
<array>
(...)
<dict>
(...)
<key>url-bag-key</key> // I want to delete this key !
<string>some string</string>
</dict>
</array>
</dict>
</dict>
46. NSDictionary footer = (NSDictionary)PropertyListParser.parse(body.getBytes("UTF-8"));
47.
48. for( int i = 0; i <= 4 ;i++){
49. ((NSDictionary)((NSArray)((NSDictionary)footer.objectForKey("tabs")).objectForKey("tabs")).objectAtIndex(i)).remove("url-bag-key"); // <=== this is the line which triggers the exception
50. ((NSDictionary)((NSArray)((NSDictionary)footer.objectForKey("tabs")).objectForKey("tabs")).objectAtIndex(i)).put("url","http://someurl.com");
51. ((NSDictionary)((NSArray)((NSDictionary)footer.objectForKey("tabs")).objectForKey("tabs")).objectAtIndex(i)).put("active-tab",1);
52. }
Error (233) in script : serverscripts.nativejava.Footer_resp.main(Footer_resp.java]:49)
Hi,
Then i would turn to the developer of the server and let him check for a bug in HashMap.remove.
Regards,
Daniel