fix verve editor crash

if for some reason, function VerveEditor::CreateField( %targetStack, %fieldName, %fieldType ) is called without a %fieldType, the eval call was crashing. this fixes the imediate issue, but I'd advise followup tracing.
This commit is contained in:
AzaezelX 2026-03-30 23:07:21 -05:00
parent e5e687e83b
commit 3fe67fb850

View file

@ -120,7 +120,7 @@ function VerveEditor::CreateField( %targetStack, %fieldName, %fieldType )
};
%fieldContainer.add( %fieldLabel );
if ( isMethod( "VerveEditor", "Create" @ %fieldType @ "Field" ) )
if ( (%fieldType !$= "") && (isMethod( "VerveEditor", "Create" @ %fieldType @ "Field" ) ))
{
// Create the Input Control.
%fieldInput = eval( "return VerveEditor::Create" @ %fieldType @ "Field(" @ %fieldContainer @ "," @ %fieldName @ ");" );