From 3c0d86f28ad2d33bf07048d1328dd99244dc213e Mon Sep 17 00:00:00 2001 From: "valeski%netscape.com" Date: Fri, 17 Sep 1999 18:05:11 +0000 Subject: [PATCH] 14143 --- netwerk/streamconv/src/nsStreamConverterService.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/netwerk/streamconv/src/nsStreamConverterService.cpp b/netwerk/streamconv/src/nsStreamConverterService.cpp index 410d7b6c13e..825ef380e2d 100644 --- a/netwerk/streamconv/src/nsStreamConverterService.cpp +++ b/netwerk/streamconv/src/nsStreamConverterService.cpp @@ -343,9 +343,10 @@ nsStreamConverterService::FindConverter(const char *aProgID, nsVoidArray **aEdge if (!source) return NS_ERROR_OUT_OF_MEMORY; SCTableData *data = (SCTableData*)lBFSTable.Get(source); + NS_ASSERTION(data, "tried to convert a stream who's from type wasn't registered"); + if (!data) return NS_ERROR_FAILURE; + BFSState *state = (BFSState*)data->data; - // XXX probably don't need this check. - if (!state) return NS_ERROR_FAILURE; state->color = gray; state->distance = 0;