Bugzilla Bug 80181 mTransferable= (nsITransferable *) 0x0. Can't paste in xlib build.

r=dr sr=blizzard
This commit is contained in:
timeless%mac.com 2001-05-16 07:27:25 +00:00
parent 8d6324b1e2
commit d4907d92d8

View File

@ -309,7 +309,9 @@ NS_IMETHODIMP nsClipboard::GetData(nsITransferable *aTransferable,
// Get which transferable we should use.
NS_IF_RELEASE(mTransferable);
mTransferable = GetTransferable(aWhichClipboard);
NS_IF_ADDREF(mTransferable);
NS_ASSERTION(!mTransferable,"mTransferable is null!! see bug 80181");
if (!mTransferable) return NS_ERROR_FAILURE;
NS_ADDREF(mTransferable);
// If we currently own the selection, we will handle the paste
// internally, otherwise get the data from the X server