mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Add assertions to trap runtime error
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29263 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
eacf55249b
commit
acab61a463
2 changed files with 3 additions and 1 deletions
|
@ -302,6 +302,7 @@ NSCreateHashTableWithZone(
|
|||
if (concreteClass == Nil)
|
||||
{
|
||||
[NSConcreteHashTable class]; // Force +initialize
|
||||
NSCAssert(concreteClass != Nil, NSInternalInconsistencyException);
|
||||
}
|
||||
table = (GSIMapTable)[concreteClass allocWithZone: zone];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue