IllegalArgumentException when loading page
Brought to you by:
padeler
Some pages cannot load because browser throws an IllegalArgumentException (can be seen in http://m.hi5.com\). From what I have tested this might has to do with an <hr/> tag, for some reason when it is going to be created, as an image, it's length is <= 0.
Stack trace:
java.lang.IllegalArgumentException
at javax.microedition.lcdui.Image.createImage(+15)
at gr.fire.browser.BlockTag.handleTagEnd(+474)
at gr.fire.browser.Browser.loadPageFromStream(+382)
at gr.fire.browser.Browser.loadPage(+238)
at gr.fire.browser.Browser$1.run(+23)
I could not reproduce the bug in hi5, but i found a possible problem on the creation of the <hr> image if the ruler's container width is less that 3 pixels. I added a check to work with that case. post here if the problem is not fixed.