shouldn't an ABAPer be able to debug?
the dump clearly says that the function module name in field fm_name is empty.
As you get the name from the earlier call SSF_FUNCTION_MODULE_NAME you would probably need to check if your field var has a valid content and if SSF_FUNCTION_MODULE_NAME did find anything.
You did not even react on the possible exceptions defined for that function call.