google-code-export / sqljet

Automatically exported from code.google.com/p/sqljet
0 stars 1 forks source link

NullPointerExcpetion in SqlJetMemPage.clearCell() #112

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When I execute the attached code I get the following error:

java.lang.NullPointerException
    at org.tmatesoft.sqljet.core.internal.btree.SqlJetMemPage.clearCell
(SqlJetMemPage.java:624)
    at 
org.tmatesoft.sqljet.core.internal.btree.SqlJetBtreeCursor.insert
(SqlJetBtreeCursor.java:1854)
    at 
org.tmatesoft.sqljet.core.internal.table.SqlJetBtreeDataTable.doUpdate
(SqlJetBtreeDataTable.java:467)
    at 
org.tmatesoft.sqljet.core.internal.table.SqlJetBtreeDataTable.updateCurrent
(SqlJetBtreeDataTable.java:388)
    at org.tmatesoft.sqljet.core.internal.table.SqlJetTableDataCursor
$12.run(SqlJetTableDataCursor.java:179)
    at org.tmatesoft.sqljet.core.table.SqlJetDb$6.runWithLock
(SqlJetDb.java:297)
    at org.tmatesoft.sqljet.core.table.SqlJetDb.runWithLock
(SqlJetDb.java:212)
    at org.tmatesoft.sqljet.core.table.SqlJetDb.runTransaction
(SqlJetDb.java:294)
    at org.tmatesoft.sqljet.core.table.SqlJetDb.runWriteTransaction
(SqlJetDb.java:266)
    at 
org.tmatesoft.sqljet.core.internal.table.SqlJetTableDataCursor.update
(SqlJetTableDataCursor.java:172)
    at _test.ClearCellError.main(ClearCellError.java:59)

Original issue reported on code.google.com by rob...@mailueberfall.de on 30 Sep 2009 at 1:50

Attachments:

GoogleCodeExporter commented 9 years ago
Oh, I just notice that the attached code contains a small bug - but that does 
not 
affect the error. It still occurs as before.

Line 57 is: updateCursor.update(blob);
Line 57 must be: updateCursor.update(x, y, zoom, 0, blob);

Original comment by rob...@mailueberfall.de on 30 Sep 2009 at 1:54

GoogleCodeExporter commented 9 years ago

Original comment by sergey.s...@gmail.com on 30 Sep 2009 at 8:43

GoogleCodeExporter commented 9 years ago
Fixed in SVN trunk.

Committed revision 643.

Original comment by sergey.s...@gmail.com on 18 Oct 2009 at 7:26

GoogleCodeExporter commented 9 years ago
I've just merged the fix into 1.0.x branch, 
Robert thank you once again for reporting this issue.

Original comment by kit...@gmail.com on 21 Oct 2009 at 8:29