diff -r 49bb6c8ceb2b -r bdec069d2239 src/server/safs/objecttype.c --- a/src/server/safs/objecttype.c Tue Jul 09 20:56:01 2013 +0200 +++ b/src/server/safs/objecttype.c Thu Jul 11 14:21:23 2013 +0200 @@ -59,6 +59,11 @@ // get the mime type for the ext from the server configuration ServerConfiguration *config = session_get_config(sn); + + WS_ASSERT(config); + WS_ASSERT(config->mimetypes); + WS_ASSERT(config->mimetypes->map); + char *type = ucx_map_sstr_get(config->mimetypes->map, ext); if(!type) {