Skip to content
Permalink
Browse files

Fix to ensure oom error gets to system error handler

git-svn-id: https://svn.apache.org/repos/asf/xmlbeans/trunk@1572882 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
Jerry O. Sy
Jerry O. Sy committed Feb 28, 2014
1 parent 511d8ae commit 6cd06c9c9e0174190b593de7dec372d5cc123305
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/store/org/apache/xmlbeans/impl/store/Locale.java
@@ -2823,9 +2823,9 @@ public void enter()

if (--_numTempFramesLeft <= 0)
{
Cur[] newTempFrames = new Cur[(_numTempFramesLeft =
_tempFrames.length) *
2];
Cur[] newTempFrames = new Cur[_tempFrames.length * 2];
//move this assignment down so if array allocation fails, error is not masked
_numTempFramesLeft = _tempFrames.length;
System.arraycopy(_tempFrames, 0, newTempFrames, 0,
_tempFrames.length);
_tempFrames = newTempFrames;

0 comments on commit 6cd06c9

Please sign in to comment.
You can’t perform that action at this time.