Description

Editor crashes when trying to using get Material Slot Name on a static mesh component that has not has a static mesh specified.

Steps to Reproduce
  1. Open the editor
  2. Create a new Actor blueprint
  3. Add a static mesh component
  4. Create the blueprint in the attached image
  5. Compile

Result: The editor will crash
Expected: An error would be would be given

Callstack
UE4Editor_Engine!UStaticMeshComponent::GetMaterialSlotNames() staticmeshcomponent.cpp:2057 
UE4Editor_Engine!UMeshComponent::execGetMaterialSlotNames() meshcomponent.h:22 
UE4Editor_CoreUObject!UFunction::Invoke() class.cpp:4461 
UE4Editor_CoreUObject!UObject::CallFunction() scriptcore.cpp:721 
UE4Editor_CoreUObject!UObject::ProcessContextOpcode() scriptcore.cpp:2165 
UE4Editor_CoreUObject!UObject::execLet() scriptcore.cpp:1951 
UE4Editor_CoreUObject!UObject::ProcessInternal() scriptcore.cpp:943 
UE4Editor_CoreUObject!UFunction::Invoke() class.cpp:4461 
UE4Editor_CoreUObject!UObject::ProcessEvent() scriptcore.cpp:1313 
UE4Editor_Engine!AActor::ProcessEvent() actor.cpp:695 
UE4Editor_Engine!AActor::UserConstructionScript() 
UE4Editor_Engine!AActor::ProcessUserConstructionScript() actorconstruction.cpp:842 
UE4Editor_Engine!AActor::ExecuteConstruction() actorconstruction.cpp:758 
UE4Editor_Engine!AActor::RerunConstructionScripts() actorconstruction.cpp:491 
UE4Editor_UnrealEd!FReinstanceFinalizer::Finalize() kismetreinstanceutilities.cpp:536 
UE4Editor_UnrealEd!FBlueprintCompileReinstancer::ReinstanceObjects() kismetreinstanceutilities.cpp:953 
UE4Editor_UnrealEd!FKismetEditorUtilities::CompileBlueprint() kismet2.cpp:889 
UE4Editor_Kismet!FBlueprintEditor::Compile() blueprinteditor.cpp:3292 
UE4Editor_Kismet!TBaseSPMethodDelegateInstance<0,FBlueprintEditor,0,TTypeWrapper<void> __cdecl() delegateinstancesimpl.h:327 
UE4Editor_Kismet!TBaseSPMethodDelegateInstance<0,FBlueprintEditor,0,void __cdecl() delegateinstancesimpl.h:434 
UE4Editor_Slate!FUICommandList::ExecuteAction() uicommandlist.cpp:97 
UE4Editor_Slate!SToolBarButtonBlock::OnClicked() stoolbarbuttonblock.cpp:305 
UE4Editor_Slate!TMemberFunctionCaller<SToolBarButtonBlock,FReply() delegateinstanceinterface.h:165 
UE4Editor_Slate!UE4Tuple_Private::TTupleImpl<TIntegerSequence<unsigned int> >::ApplyAfter<TMemberFunctionCaller<SToolBarButtonBlock,FReply() tuple.h:497 
UE4Editor_Slate!TBaseSPMethodDelegateInstance<0,SToolBarButtonBlock,0,FReply __cdecl() delegateinstancesimpl.h:327 
UE4Editor_Slate!TBaseDelegate<FReply>::Execute() delegatesignatureimpl.inl:537 
UE4Editor_Slate!SButton::OnMouseButtonUp() sbutton.cpp:278 
UE4Editor_Slate!<lambda_8d0e9a1da76abd0a756a3a9d775f5ed1>::operator() slateapplication.cpp:5049 
UE4Editor_Slate!FEventRouter::Route<FReply,FEventRouter::FToLeafmostPolicy,FPointerEvent,<lambda_8d0e9a1da76abd0a756a3a9d775f5ed1> >() slateapplication.cpp:239 
UE4Editor_Slate!FSlateApplication::RoutePointerUpEvent() slateapplication.cpp:5038 
UE4Editor_Slate!FSlateApplication::ProcessMouseButtonUpEvent() slateapplication.cpp:5515 
UE4Editor_Slate!FSlateApplication::OnMouseUp() slateapplication.cpp:5495 
UE4Editor_Core!FWindowsApplication::ProcessDeferredMessage() windowsapplication.cpp:1704 
UE4Editor_Core!FWindowsApplication::DeferMessage() windowsapplication.cpp:2127 
UE4Editor_Core!FWindowsApplication::ProcessMessage() windowsapplication.cpp:867 
UE4Editor_Core!FWindowsApplication::AppWndProc() windowsapplication.cpp:714 
user32!<Unknown> 
user32!<Unknown> 
UE4Editor_Core!FWindowsPlatformMisc::PumpMessages() windowsplatformmisc.cpp:1009 
UE4Editor!FEngineLoop::Tick() launchengineloop.cpp:3058 
UE4Editor!GuardedMain() launch.cpp:166 
UE4Editor!GuardedMainWrapper() launchwindows.cpp:134 
UE4Editor!WinMain() launchwindows.cpp:210 
UE4Editor!__scrt_common_main_seh() exe_common.inl:253 
kernel32!<Unknown> 
ntdll!<Unknown> 

Have Comments or More Details?

Head over to the existing Questions & Answers thread and let us know what's up.

0
Login to Vote

Fixed
ComponentUE - Gameplay - Blueprint
Affects Versions4.16.2
Target Fix4.17
Fix Commit3522619
Main Commit3555226
Release Commit3522619
CreatedJul 24, 2017
ResolvedJul 24, 2017
UpdatedApr 27, 2018
View Jira Issue