aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorn0n4m3 <none@none>2009-12-17 06:42:04 +0100
committern0n4m3 <none@none>2009-12-17 06:42:04 +0100
commit3e03b0aa2d7b369d7e12a9bcee81e421735c4dac (patch)
tree0d6f75b6d83eef170e522e5fbbfc79f2e312f47a /src
parent242e6a729556d93899bafd16385f1937fd0b906e (diff)
Fixed crash in LinkedListElement, thx Alexsot
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/framework/Utilities/LinkedList.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/framework/Utilities/LinkedList.h b/src/framework/Utilities/LinkedList.h
index 12fa878d07f..0f7bcc144b2 100644
--- a/src/framework/Utilities/LinkedList.h
+++ b/src/framework/Utilities/LinkedList.h
@@ -37,8 +37,8 @@ class LinkedListElement
LinkedListElement() { iNext = NULL; iPrev = NULL; }
~LinkedListElement() { delink(); }
- bool hasNext() const { return(iNext->iNext != NULL); }
- bool hasPrev() const { return(iPrev->iPrev != NULL); }
+ bool hasNext() const { return(iNext && iNext->iNext != NULL); }
+ bool hasPrev() const { return(iPrev && iPrev->iPrev != NULL); }
bool isInList() const { return(iNext != NULL && iPrev != NULL); }
LinkedListElement * next() { return hasNext() ? iNext : NULL; }