Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
5615c368
Commit
5615c368
authored
Aug 23, 2016
by
Mikaël Salson
Committed by
Mathieu Giraud
Sep 23, 2016
Browse files
tools.js: Robustness
Ensure that field is defined before accessing it.
parent
c5ec20f6
Changes
1
Show whitespace changes
Inline
Side-by-side
browser/js/tools.js
View file @
5615c368
...
...
@@ -100,7 +100,7 @@ function computeStartStop(arrayToProcess,sequence){
// IMGT positions start at 1
start
=
arrayToProcess
[
fields
[
i
].
field
+
'
start
'
]
-
1
;
stop
=
arrayToProcess
[
fields
[
i
].
field
+
'
end
'
]
-
1
;
}
else
{
}
else
if
(
typeof
arrayToProcess
[
fields
[
i
].
field
]
!=
'
undefined
'
)
{
sequence_to_search
=
arrayToProcess
[
fields
[
i
].
field
].
toUpperCase
();
position
=
junction
.
indexOf
(
sequence_to_search
);
if
(
position
>
-
1
&&
sequence_to_search
.
length
>
0
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment