Skip to content

Commit

Permalink
Fix display panel crash when translation undefined values, Closes #27
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensworks committed Dec 23, 2024
1 parent 8967355 commit 9b248d5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public IValueTranslator getScriptValueTranslator(Value scriptValue) {
public <V extends IValue> V translateFromGraal(Context context, Value value, IEvaluationExceptionFactory exceptionFactory) throws EvaluationException {
IValueTranslator translator = getScriptValueTranslator(value);
if (translator == null) {
throw exceptionFactory.createError(Component.translatable("valuetype.integratedscripting.error.translation.unknown_from_graal", value));
throw exceptionFactory.createError(Component.translatable("valuetype.integratedscripting.error.translation.unknown_from_graal", value.toString()));
}
return (V) translator.translateFromGraal(context, value, exceptionFactory);
}
Expand Down

0 comments on commit 9b248d5

Please sign in to comment.