Skip to content
This repository was archived by the owner on Feb 4, 2022. It is now read-only.
This repository was archived by the owner on Feb 4, 2022. It is now read-only.

NPE from Clojure maps with nil values #64

@kephale

Description

@kephale

In a notebook cell

#!clojure
{['org.renjin/utils "0.8.1906" :scope "runtime"] nil}

leads to:

java.lang.NullPointerException
	at org.scijava.notebook.converter.HTMLNotebookOutputConverter.asHTML(HTMLNotebookOutputConverter.java:42)
	at org.scijava.notebook.converter.MapToHTMLTableNotebookConverter.convert(MapToHTMLTableNotebookConverter.java:71)
	at org.scijava.notebook.converter.MapToHTMLTableNotebookConverter.convert(MapToHTMLTableNotebookConverter.java:39)
	at org.scijava.notebook.converter.NotebookOutputConverter.convert(NotebookOutputConverter.java:50)
	at org.scijava.convert.AbstractConvertService.convert(AbstractConvertService.java:127)
	at org.scijava.jupyter.kernel.evaluator.Worker.run(Worker.java:127)
	at org.scijava.thread.DefaultThreadService$2.run(DefaultThreadService.java:220)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions