NOTICE! This is a static HTML version of a legacy Fiji BugZilla bug.

The Fiji project now uses GitHub Issues for issue tracking.

Please file all new issues there.

Bug 121 - Enhance contrast layer wise crashes with an exception
Enhance contrast layer wise crashes with an exception
Status: RESOLVED WORKSFORME
Product: Fiji
Classification: Unclassified
Component: TrakEM2
unspecified
PC Linux
: P2 normal
Assigned To: Albert Cardona
Depends on:
Blocks:
 
Reported: 2009-12-07 20:43 CST by Stephan Saalfeld
Modified: 2010-08-21 13:30 CDT
0 users

See Also:

Description Stephan Saalfeld 2009-12-07 20:43:01 CST
I did Enhance contrast layer wise for a range of layers, unchecked Normalize and left the rest as is.  In the first layer, it crashed with the following exception:

==================
ERROR:
java.lang.NullPointerException
	at ij.process.StackStatistics.sum16BitHistograms(StackStatistics.java:199)
	at ij.process.StackStatistics.<init>(StackStatistics.java:20)
	at ij.process.StackStatistics.<init>(StackStatistics.java:12)
	at ini.trakem2.imaging.ContrastEnhancerWrapper.apply(ContrastEnhancerWrapper.java:216)
	at ini.trakem2.imaging.ContrastEnhancerWrapper.applyLayerWise(ContrastEnhancerWrapper.java:124)
	at ini.trakem2.persistence.Loader$11.exec(Loader.java:4156)
	at ini.trakem2.utils.Worker$Task.run(Worker.java:132)
	at java.lang.Thread.run(Thread.java:619)
==================
Comment 1 Albert Cardona 2009-12-09 03:59:12 CST
Can't reproduce.
Potential fix committed, please test.
Comment 2 Albert Cardona 2010-08-21 13:30:11 CDT
Reopen if the error appears again.