Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
TTool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mbe-tools
TTool
Commits
aa61b9d1
Commit
aa61b9d1
authored
5 years ago
by
apvrille
Browse files
Options
Downloads
Patches
Plain Diff
Resolving bug on exception when searching help with no result
parent
72585a9c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/help/SearchResultHelpEntry.java
+12
-9
12 additions, 9 deletions
src/main/java/help/SearchResultHelpEntry.java
with
12 additions
and
9 deletions
src/main/java/help/SearchResultHelpEntry.java
+
12
−
9
View file @
aa61b9d1
...
...
@@ -132,16 +132,19 @@ public class SearchResultHelpEntry extends HelpEntry {
Vector
<
HelpEntry
>
tmp
=
new
Vector
<>();
Vector
<
AtomicInteger
>
tmpScores
=
new
Vector
<>();
int
cpt
=
0
;
for
(
HelpEntry
he:
entries
)
{
int
indexOriginal
=
tmp
.
indexOf
(
he
);
if
(
indexOriginal
>
-
1
)
{
AtomicInteger
right
=
tmpScores
.
get
(
indexOriginal
);
right
.
addAndGet
(
scores
.
get
(
cpt
).
intValue
());
}
else
{
tmp
.
add
(
he
);
tmpScores
.
add
(
new
AtomicInteger
(
scores
.
get
(
cpt
).
intValue
()));
if
(
entries
!=
null
)
{
for
(
HelpEntry
he
:
entries
)
{
int
indexOriginal
=
tmp
.
indexOf
(
he
);
if
(
indexOriginal
>
-
1
)
{
AtomicInteger
right
=
tmpScores
.
get
(
indexOriginal
);
right
.
addAndGet
(
scores
.
get
(
cpt
).
intValue
());
}
else
{
tmp
.
add
(
he
);
tmpScores
.
add
(
new
AtomicInteger
(
scores
.
get
(
cpt
).
intValue
()));
}
cpt
++;
}
cpt
++;
}
scores
=
tmpScores
;
entries
=
tmp
;
...
...
This diff is collapsed.
Click to expand it.
Ludovic Apvrille
@ludovic.apvrille
mentioned in commit
07e21406
·
5 years ago
mentioned in commit
07e21406
mentioned in commit 07e214067f7c24a0fbb3f745abb0c085b1c2082d
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment