I have noticed that
DatasetViews are uninitialized (i.e. no
colorTable array null) until they are bound to
Display, and the
DatasetView.rebuild() is called from
DefaultImageDisplay.rebuild(). Is this an intended behavior? If so, I guess we would need to make a
if (!isInitialized()) return;
DatasetView.setColorTable. Otherwise, attempt to set
colorTable on uninitialized
DatasetView causes null pointer exception (because
defaultLUTs is null and
setColorTable tries to call set on it.)
Otherwise, it might we worthwhile to call
DatasetView.rebuild() from within
What do you think?
Happy to make a PR with both.