Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
OLAT CI-CD Testing Project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor 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
Lars Oliver Dam
OLAT CI-CD Testing Project
Commits
dd6b5e16
"...git@git.uibk.ac.at:c102348/olat-ci-cd-testing-project.git" did not exist on "233c09beb9ba253559f94f3ede3199b7ffd1c26b"
Commit
dd6b5e16
authored
6 years ago
by
srosse
Browse files
Options
Downloads
Patches
Plain Diff
OO-3830: make the length of the char array is correct
parent
451d47aa
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/org/olat/ims/qti21/pool/QTI12To21HtmlHandler.java
+4
-1
4 additions, 1 deletion
...in/java/org/olat/ims/qti21/pool/QTI12To21HtmlHandler.java
with
4 additions
and
1 deletion
src/main/java/org/olat/ims/qti21/pool/QTI12To21HtmlHandler.java
+
4
−
1
View file @
dd6b5e16
...
@@ -48,7 +48,7 @@ class QTI12To21HtmlHandler extends DefaultHandler {
...
@@ -48,7 +48,7 @@ class QTI12To21HtmlHandler extends DefaultHandler {
private
final
XMLStreamWriter
xtw
;
private
final
XMLStreamWriter
xtw
;
private
int
subLevel
=
0
;
private
int
subLevel
=
0
;
private
Deque
<
String
>
skipTags
=
new
ArrayDeque
<
String
>();
private
Deque
<
String
>
skipTags
=
new
ArrayDeque
<>();
private
Map
<
String
,
String
>
materialsMapping
=
new
HashMap
<>();
private
Map
<
String
,
String
>
materialsMapping
=
new
HashMap
<>();
private
boolean
envelopP
=
false
;
private
boolean
envelopP
=
false
;
...
@@ -157,6 +157,9 @@ class QTI12To21HtmlHandler extends DefaultHandler {
...
@@ -157,6 +157,9 @@ class QTI12To21HtmlHandler extends DefaultHandler {
if
(
start
<
0
)
{
if
(
start
<
0
)
{
start
=
0
;
//Bug neko
start
=
0
;
//Bug neko
}
}
if
(
start
+
length
>
ch
.
length
)
{
length
=
ch
.
length
-
start
;
// Make sure the length is correct
}
xtw
.
writeCharacters
(
ch
,
start
,
length
);
xtw
.
writeCharacters
(
ch
,
start
,
length
);
}
else
{
}
else
{
xtw
.
writeCharacters
(
ch
,
start
,
length
);
xtw
.
writeCharacters
(
ch
,
start
,
length
);
...
...
This diff is collapsed.
Click to expand it.
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