This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 92066 - Exception when entering * as the search string for Find Panel
Summary: Exception when entering * as the search string for Find Panel
Status: VERIFIED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: BPEL (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Vladimir Yaroslavskiy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-09 08:17 UTC by Mikhail Kondratyev
Modified: 2007-02-02 12:37 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mikhail Kondratyev 2007-01-09 08:17:47 UTC
Steps to reproduce:
 - open a BPEL diagram
 - press Ctrl+F, Search panel will be opened
 - Enter * as the search string, press Enter
Exception will be thrown:
java.util.regex.PatternSyntaxException: Dangling meta character '*' near index 0
*
^
	at java.util.regex.Pattern.error(Pattern.java:1700)
	at java.util.regex.Pattern.sequence(Pattern.java:1865)
	at java.util.regex.Pattern.expr(Pattern.java:1739)
	at java.util.regex.Pattern.compile(Pattern.java:1447)
	at java.util.regex.Pattern.<init>(Pattern.java:1130)
	at java.util.regex.Pattern.compile(Pattern.java:846)
	at org.netbeans.modules.bpel.search.impl.core.Pattern.<init>(Pattern.java:50)
	at org.netbeans.modules.bpel.search.impl.core.Manager.getPattern(Manager.java:69)
	at
org.netbeans.modules.bpel.search.spi.SearchEngine$Adapter.createSearchPattern(SearchEngine.java:135)
	at
org.netbeans.modules.bpel.search.spi.SearchEngine$Adapter.fireSearchStarted(SearchEngine.java:104)
	at org.netbeans.modules.bpel.search.impl.diagram.Engine.search(Engine.java:46)
	at org.netbeans.modules.bpel.search.impl.ui.Find$Provider.search(Find.java:148)
	at
org.netbeans.modules.xml.xam.ui.search.SearchFieldPanel.actionPerformed(SearchFieldPanel.java:108)
	at javax.swing.JTextField.fireActionPerformed(JTextField.java:492)
	at javax.swing.JTextField.postActionEvent(JTextField.java:705)
	...
Comment 1 Vladimir Yaroslavskiy 2007-01-09 12:33:37 UTC
To reproduce: Regular expression must be switched on.
Comment 2 Vladimir Yaroslavskiy 2007-01-10 08:47:44 UTC
fixed.
Comment 3 Mikhail Kondratyev 2007-02-02 12:37:34 UTC
Verified