java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1871) at org.netbeans.modules.php.editor.model.impl.VariousUtils.getRelativesToUses(VariousUtils.java:1350) at org.netbeans.modules.php.editor.model.impl.VariousUtils.getRelatives(VariousUtils.java:1368) at org.netbeans.modules.php.editor.model.impl.VariousUtils.getAllNames(VariousUtils.java:1336) at org.netbeans.modules.php.editor.model.impl.VariousUtils.getPreferredName(VariousUtils.java:1322) at org.netbeans.modules.php.editor.PHPCompletionItem.getInsertPrefix(PHPCompletionItem.java:327) at org.netbeans.modules.csl.editor.completion.GsfCompletionItem$DelegatedItem.getInsertPrefix(GsfCompletionItem.java:207) at org.netbeans.modules.csl.editor.completion.GsfCompletionProvider$JavaCompletionQuery.getFilteredData(GsfCompletionProvider.java:657) at org.netbeans.modules.csl.editor.completion.GsfCompletionProvider$JavaCompletionQuery.filter(GsfCompletionProvider.java:413) at org.netbeans.spi.editor.completion.support.AsyncCompletionTask.refreshImpl(AsyncCompletionTask.java:198) at org.netbeans.spi.editor.completion.support.AsyncCompletionTask$1.run(AsyncCompletionTask.java:236) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:727) at java.awt.EventQueue.access$200(EventQueue.java:103) at java.awt.EventQueue$3.run(EventQueue.java:688) at java.awt.EventQueue$3.run(EventQueue.java:686) at java.security.AccessController.doPrivileged(AccessController.java:0) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:697) at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138) at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)