mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 14:25:52 +00:00
Move assert to the correct place
Original committer: pedemont%us.ibm.com Original revision: 1.2 Original date: 2004/10/19 23:15:51
This commit is contained in:
parent
47543f4e32
commit
7c515e82d2
@ -71,7 +71,6 @@ nsJavaXPTCStubWeakRef::QueryReferent(const nsIID& aIID, void** aInstancePtr)
|
||||
// Java object has not been garbage collected. Do we have an
|
||||
// associated nsJavaXPTCStub?
|
||||
void* inst = GetMatchingXPCOMObject(mJavaEnv, javaObject);
|
||||
NS_ASSERTION(IsXPTCStub(inst), "Found xpcom object was not an XPTCStub");
|
||||
|
||||
if (!inst) {
|
||||
// No XPTCStub exists, so create one
|
||||
@ -90,6 +89,7 @@ nsJavaXPTCStubWeakRef::QueryReferent(const nsIID& aIID, void** aInstancePtr)
|
||||
*aInstancePtr = (void*) xpcomStub;
|
||||
return NS_OK;
|
||||
}
|
||||
NS_ASSERTION(IsXPTCStub(inst), "Found xpcom object was not an XPTCStub");
|
||||
|
||||
// We have an exising XPTCStub, so return QI result
|
||||
nsJavaXPTCStub* xpcomStub = GetXPTCStubAddr(inst);
|
||||
|
Loading…
Reference in New Issue
Block a user