From 41927123d82e78cf2ef3f74ec31da55b9a7b548b Mon Sep 17 00:00:00 2001 From: n0egen <89933601+n0egen@users.noreply.github.com> Date: Thu, 25 Jul 2024 18:22:24 +0100 Subject: [PATCH] Add missing wrapping of null to None, in Seq[Trace].plot() Otherwise null pointer exceptions by default. --- almond/src/main/scala/plotly/Almond.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/almond/src/main/scala/plotly/Almond.scala b/almond/src/main/scala/plotly/Almond.scala index 41e7bb9..2047ecd 100644 --- a/almond/src/main/scala/plotly/Almond.scala +++ b/almond/src/main/scala/plotly/Almond.scala @@ -300,7 +300,7 @@ object Almond { .withEditable(Option(editable).map[Boolean](identity)) .withResponsive(Option(responsive).map[Boolean](identity)) .withShowEditInChartStudio(Option(showEditInChartStudio).map[Boolean](identity)) - .withPlotlyServerURL(plotlyServerURL), + .withPlotlyServerURL(Option(plotlyServerURL)), div )