[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[dotgnu-pnet-commits] pnet ChangeLog engine/lib_object.c
From: |
Klaus Treichel |
Subject: |
[dotgnu-pnet-commits] pnet ChangeLog engine/lib_object.c |
Date: |
Sat, 15 Jul 2006 17:04:04 +0000 |
CVSROOT: /sources/dotgnu-pnet
Module name: pnet
Changes by: Klaus Treichel <ktreichel> 06/07/15 17:04:04
Modified files:
. : ChangeLog
engine : lib_object.c
Log message:
2006-07-15 Klaus Treichel <address@hidden>
* engine/lib_object.c: Add a check if _this is null in
_IL_Object_GetType
and throw a NullReferenceException in this case because this
might be Null
for normal calls (non virtual and interface calls).
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/pnet/ChangeLog?cvsroot=dotgnu-pnet&r1=1.3339&r2=1.3340
http://cvs.savannah.gnu.org/viewcvs/pnet/engine/lib_object.c?cvsroot=dotgnu-pnet&r1=1.15&r2=1.16
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/dotgnu-pnet/pnet/ChangeLog,v
retrieving revision 1.3339
retrieving revision 1.3340
diff -u -b -r1.3339 -r1.3340
--- ChangeLog 13 Jul 2006 18:16:05 -0000 1.3339
+++ ChangeLog 15 Jul 2006 17:04:04 -0000 1.3340
@@ -1,3 +1,9 @@
+2006-07-15 Klaus Treichel <address@hidden>
+
+ * engine/lib_object.c: Add a check if _this is null in
_IL_Object_GetType
+ and throw a NullReferenceException in this case because this might be
Null
+ for normal calls (non virtual and interface calls).
+
2006-07-13 Klaus Treichel <address@hidden>
* engine/jitc_delegate.c: Fix Delegate.Invoke if the current thread is
Index: engine/lib_object.c
===================================================================
RCS file: /sources/dotgnu-pnet/pnet/engine/lib_object.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -b -r1.15 -r1.16
--- engine/lib_object.c 23 Aug 2005 10:45:52 -0000 1.15
+++ engine/lib_object.c 15 Jul 2006 17:04:04 -0000 1.16
@@ -29,6 +29,14 @@
{
ILObject *obj;
+ /* Check if _this is Null. */
+ if(_this == 0)
+ {
+ ILExecThreadThrowSystem(thread, "System.NullReferenceException",
+ (const char
*)0);
+ return 0;
+ }
+
/* Does the class already have a "ClrType" instance? */
if(GetObjectClassPrivate(_this)->clrType)
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [dotgnu-pnet-commits] pnet ChangeLog engine/lib_object.c,
Klaus Treichel <=