Issue 112 in sqljet: NullPointerExcpetion in SqlJetMemPage.clearCell()

2 views
Skip to first unread message

codesite...@google.com

unread,
Sep 30, 2009, 9:51:37 AM9/30/09
to sql...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 112 by rob...@mailueberfall.de: NullPointerExcpetion in
SqlJetMemPage.clearCell()
http://code.google.com/p/sqljet/issues/detail?id=112

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)


Attachments:
ClearCellError.java 2.3 KB

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

codesite...@google.com

unread,
Sep 30, 2009, 9:55:42 AM9/30/09
to sql...@googlegroups.com

Comment #1 on issue 112 by rob...@mailueberfall.de: NullPointerExcpetion in
SqlJetMemPage.clearCell()
http://code.google.com/p/sqljet/issues/detail?id=112

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);

codesite...@google.com

unread,
Sep 30, 2009, 4:44:27 PM9/30/09
to sql...@googlegroups.com
Updates:
Status: Accepted
Owner: sergey.scherbina

Comment #2 on issue 112 by sergey.scherbina: NullPointerExcpetion in
SqlJetMemPage.clearCell()
http://code.google.com/p/sqljet/issues/detail?id=112

(No comment was entered for this change.)

Reply all
Reply to author
Forward
0 new messages