]> git.mxchange.org Git - hub.git/commitdiff
Added assert on node_id as this may happen with broken database file. If you
authorRoland Haeder <roland@mxchange.org>
Fri, 7 Feb 2014 19:34:25 +0000 (20:34 +0100)
committerRoland Haeder <roland@mxchange.org>
Fri, 7 Feb 2014 19:34:25 +0000 (20:34 +0100)
encounter this asserts, please delete your database files:

$ rm db/*/*.serialized

Signed-off-by: Roland Haeder <roland@mxchange.org>
application/hub/main/database/wrapper/node/class_NodeDistributedHashTableDatabaseWrapper.php
core

index a948629634d7b20fa492858fc9d17dfb2396c7a3..f3224f329cba405e1e3690ebc96f39a17cc246dc 100644 (file)
@@ -275,6 +275,9 @@ class NodeDistributedHashTableDatabaseWrapper extends BaseDatabaseWrapper implem
         * @return      $isRegistered   Whether the given node data is already inserted
         */
        public function isNodeRegistered (array $nodeData) {
+               // Assert on array elements
+               assert(isset($nodeData[self::DB_COLUMN_NODE_ID]));
+
                // Get search criteria
                $searchInstance = ObjectFactory::createObjectByConfiguredName('search_criteria_class');
 
diff --git a/core b/core
index f82de4aed697fb3e2c79f39f0c8bf166598eb43f..7244bd9800fb371c6c8b51be8844cf089e0921b4 160000 (submodule)
--- a/core
+++ b/core
@@ -1 +1 @@
-Subproject commit f82de4aed697fb3e2c79f39f0c8bf166598eb43f
+Subproject commit 7244bd9800fb371c6c8b51be8844cf089e0921b4