db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject svn commit: r596853 - /db/derby/code/trunk/java/engine/org/apache/derby/impl/store/raw/data/CachedPage.java
Date Tue, 20 Nov 2007 22:28:16 GMT
Author: dag
Date: Tue Nov 20 14:28:15 2007
New Revision: 596853

URL: http://svn.apache.org/viewvc?rev=596853&view=rev
Log:
DERBY-3215 Potential NullPointerException in CachedPage class

Patch DERBY-3215.diff. Fixes two erroneous usages of 
StandardException.newException(SQLState.FILE_WRITE_PAGE_EXCEPTION,..)

Modified:
    db/derby/code/trunk/java/engine/org/apache/derby/impl/store/raw/data/CachedPage.java

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/store/raw/data/CachedPage.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/store/raw/data/CachedPage.java?rev=596853&r1=596852&r2=596853&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/store/raw/data/CachedPage.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/store/raw/data/CachedPage.java Tue
Nov 20 14:28:15 2007
@@ -816,7 +816,7 @@
 				// page cannot be written
 				throw StandardException.newException(
                     SQLState.FILE_WRITE_PAGE_EXCEPTION, 
-                    ioe, identity, new Integer(myContainer.getPageSize()));
+                    ioe, identity);
 			}
 			finally
 			{
@@ -833,7 +833,7 @@
 			throw dataFactory.markCorrupt(
                 StandardException.newException(
                     SQLState.FILE_WRITE_PAGE_EXCEPTION, nested, 
-                    identity, new Integer(myContainer.getPageSize())));
+                    identity));
 		}
 
 		synchronized (this) 



Mime
View raw message