#32 Android getNextSibling() bug triggered in JaxpParser::parse

open
nobody
None
5
2010-04-25
2010-04-25
No

There is a bug in the Android libraries in the w3c DOM Node object, where getNextSibling() will sometimes throw an exception instead of returning null when moving past the last sibling node. This is causing problems in the JaxpParser on some UPnP replies. See this Android bug report:

http://code.google.com/p/android/issues/detail?id=779

Attached is a patch that uses the simple workaround in the bug report -- catching the IndexOutOfBounds exception and treating it as if getNextSibling returned null.

Discussion