java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Seems to be an issue with certain images in Powerpoint files, Confluence will display the "<filename>.ppt is being converted. Please refresh after some time" message repeatedly and the file itself never converts. Stack trace issued during the conversion is as follows: {noformat} java.lang.NullPointerException at com.benryan.graphics.emf.GdiBrush.<init>(GdiBrush.java:89) at com.benryan.graphics.emf.DeviceContext.copy(DeviceContext.java:263) at com.benryan.graphics.emf.DeviceContext.<init>(DeviceContext.java:230) at com.benryan.graphics.emf.DeviceContext.saveDC(DeviceContext.java:276) at com.benryan.graphics.emf.SaveDC.render(SaveDC.java:40) at com.benryan.graphics.emf.AbstractTranscoder.iterateRecords(AbstractTranscoder.java:248) at com.benryan.graphics.emf.AbstractTranscoder.doRender(AbstractTranscoder.java:207) at com.benryan.graphics.emf.AbstractTranscoder.transcode(AbstractTranscoder.java:137) at com.benryan.escher.EscherRenderer.renderImage(EscherRenderer.java:168) at com.benryan.escher.EscherRenderer.walkShapes(EscherRenderer.java:235) at com.benryan.ppt.PptRenderer.render(PptRenderer.java:95) at com.benryan.conversion.SlideConversionThread.convertFile(SlideConversionThread.java:64) at com.benryan.conversion.SlideConversionThread.run(SlideConversionThread.java:137) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:613) {noformat} h5. Workaround: Save the file as .ppt. However this may or may not apply to all PowerPoint files.
    via by Michael Seager [Atlassian],
    • java.lang.NullPointerException at com.benryan.graphics.emf.GdiBrush.<init>(GdiBrush.java:89) at com.benryan.graphics.emf.DeviceContext.copy(DeviceContext.java:263) at com.benryan.graphics.emf.DeviceContext.<init>(DeviceContext.java:230) at com.benryan.graphics.emf.DeviceContext.saveDC(DeviceContext.java:276) at com.benryan.graphics.emf.SaveDC.render(SaveDC.java:40) at com.benryan.graphics.emf.AbstractTranscoder.iterateRecords(AbstractTranscoder.java:248) at com.benryan.graphics.emf.AbstractTranscoder.doRender(AbstractTranscoder.java:207) at com.benryan.graphics.emf.AbstractTranscoder.transcode(AbstractTranscoder.java:137) at com.benryan.escher.EscherRenderer.renderImage(EscherRenderer.java:168) at com.benryan.escher.EscherRenderer.walkShapes(EscherRenderer.java:235) at com.benryan.ppt.PptRenderer.render(PptRenderer.java:95) at com.benryan.conversion.SlideConversionThread.convertFile(SlideConversionThread.java:64) at com.benryan.conversion.SlideConversionThread.run(SlideConversionThread.java:137) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:613)
    No Bugmate found.