From: Roland Haeder Date: Fri, 7 Feb 2014 19:34:25 +0000 (+0100) Subject: Added assert on node_id as this may happen with broken database file. If you X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=98108175fb091c9067b63410599aadeb75eb6a10;p=hub.git Added assert on node_id as this may happen with broken database file. If you encounter this asserts, please delete your database files: $ rm db/*/*.serialized Signed-off-by: Roland Haeder --- diff --git a/application/hub/main/database/wrapper/node/class_NodeDistributedHashTableDatabaseWrapper.php b/application/hub/main/database/wrapper/node/class_NodeDistributedHashTableDatabaseWrapper.php index a94862963..f3224f329 100644 --- a/application/hub/main/database/wrapper/node/class_NodeDistributedHashTableDatabaseWrapper.php +++ b/application/hub/main/database/wrapper/node/class_NodeDistributedHashTableDatabaseWrapper.php @@ -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 f82de4aed..7244bd980 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit f82de4aed697fb3e2c79f39f0c8bf166598eb43f +Subproject commit 7244bd9800fb371c6c8b51be8844cf089e0921b4