[jbosstools-issues] [JBoss JIRA] (JBIDE-11165) BrowserSIm: StringIndexOutOfBoundsException on Linux when emty URL is entered

Yahor Radtsevich (JIRA) jira-events at lists.jboss.org
Mon Mar 5 10:15:38 EST 2012


Yahor Radtsevich created JBIDE-11165:
----------------------------------------

             Summary: BrowserSIm: StringIndexOutOfBoundsException on Linux when emty URL is entered
                 Key: JBIDE-11165
                 URL: https://issues.jboss.org/browse/JBIDE-11165
             Project: Tools (JBoss Tools)
          Issue Type: Bug
          Components: Visual Page Editor core
    Affects Versions: 3.3.0.Beta1
            Reporter: Yahor Radtsevich
            Assignee: Yahor Radtsevich
             Fix For: 3.3.0.CR1


*Steps to reproduce:*
# Run BrowserSim on Linux
# Remove all characters from the address bar and press Enter

*Actual result:*
BrowserSim closes, and the following exception is printed to the console:
{code}
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 0
	at java.lang.String.charAt(String.java:694)
	at org.eclipse.swt.browser.WebKit.setUrl(WebKit.java:1300)
	at org.eclipse.swt.browser.Browser.setUrl(Browser.java:1061)
	at org.jboss.tools.vpe.browsersim.browser.AbstractWebKitBrowser.setUrl(AbstractWebKitBrowser.java:30)
	at org.eclipse.swt.browser.Browser.setUrl(Browser.java:1029)
	at org.jboss.tools.vpe.browsersim.ui.BrowserSim$ControlHandlerImpl.goToAddress(BrowserSim.java:540)
	at org.jboss.tools.vpe.browsersim.ui.skin.NativeSkin$1.handleEvent(NativeSkin.java:128)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3588)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3209)
	at org.jboss.tools.vpe.browsersim.ui.BrowserSim.main(BrowserSim.java:98)
{code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list