Details
-
Type: Bug
-
Status: Closed (View Workflow)
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.6.1
-
Fix Version/s: 1.7
-
Component/s: o.c.jsword.book.filter.thml
-
Labels:None
Description
Some older xml parsers pass in a localname but no qname to:
public void startElement(String uri, String localname, String qname, Attributes attrs)
Unfortunately there is code in CustomHandler that ignores localname and assumes qname is valid.
Android 2.3 passes in qname as expected but the slightly older Android 2.1 only passes in localname and thus THML->OSIS conversion doesn't work.
The simple fix is to check if qname is empty and if it is then use localname. This fix is local to the getTag method. I have attached a patch file that does this.
I don't know if this problem affects other parts of JSword. I only stumbled over it because I was looking for OSIS reference tags created from THML scripRef tags.