--- src/webserver/src/php_amule_lib.cpp.orig	2011-02-19 00:08:31.000000000 -0800
+++ src/webserver/src/php_amule_lib.cpp	2011-02-19 00:02:30.000000000 -0800
@@ -906,8 +906,12 @@
 			SharedFile::GetContainerInstance()->ReQuery();
 			sharedfile = SharedFile::GetContainerInstance()->GetByID(obj->nHash);
 		}
+		if ( sharedfile ) {
 		wxString short_name(sharedfile->sFileName.Length() > 60 ? (sharedfile->sFileName.Left(60) + (wxT(" ..."))) : sharedfile->sFileName);
 		result->str_val = strdup((const char *)unicode2UTF8(short_name));
+		}
+		else
+			result->str_val = strdup((const char *)wxT("removed"));
 	} else if ( strcmp(prop_name, "user_name") == 0 ) {
 		result->type = PHP_VAL_STRING;
 		result->str_val = strdup((const char *)unicode2UTF8(obj->sUserName));
