StackOverflowError in RefSpecPanel.isValidRefExpression
commit54cf1194191ee258bb0bc24f0cf16ad5c966e941
authorMichael Keppler <Michael.Keppler@gmx.de>
Sun, 16 Sep 2018 09:08:15 +0000 (16 11:08 +0200)
committerMichael Keppler <Michael.Keppler@gmx.de>
Sun, 16 Sep 2018 09:08:15 +0000 (16 11:08 +0200)
tree9d1f341bab446ad47ed425c3594642a6ac4c20c6
parent5d14d64e685dc3e3b2213742a2e48e5354597fb6
StackOverflowError in RefSpecPanel.isValidRefExpression

Endless loop if the wildcard character is not at the last position.
Avoid the recursion, check for single wildcard character only and
simplify isValidRefName checking.

Bug: 539046
Change-Id: I6f46cfbaeaf2da64ed020373e3783f914d3658bd
Signed-off-by: Michael Keppler <Michael.Keppler@gmx.de>
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/components/RefSpecPanel.java