Issue with FileObject for NPE of asset in distribution

Alright, so to get straight to the point. My partner in crime is trying to make a distribution copy here, but is getting NullPointerException due to certain assets. The Docs say to use a FileObject and change that into a file using the org.openide.filesystems.FileUtil, but isn’t having any luck there.

Question is: Is there an example lying around demonstrating this change of File stuff talked about HERE

If exact code is requested, I can provide this, but I think a simple example will solve our issues.

You can get any asset FileObject from the ProjectAssetManager by using its “normal” asset path. Apart from that the NetBeans platform is quite well documented, just best check on their site first and then google :slight_smile: NetBeans Wiki

Thanks normen, Solved the problem real fast. Consider solved!