fix for bug 22532

This commit is contained in:
sdv%sparc.spb.su 2000-02-10 01:12:21 +00:00
parent 35e032cd79
commit 65c005155c

View File

@ -347,6 +347,8 @@ NS_IMETHODIMP nsJavaDOMImpl::OnStartURLLoad(nsIDocumentLoader* loader,
char* contentType = (char*) "";
if (channel)
channel->GetContentType(&contentType);
if (!contentType)
contentType = (char*) "";
jstring jContentType = env->NewStringUTF(contentType);
if (!jContentType) return NS_ERROR_FAILURE;