On Wed, Apr 14, 2010 at 11:03 AM, Emmanouil Batsis (Manos)
<[email protected]> wrote:
> Using the trunk, I tried clicking 'Media Files' and got the following
> exception in the logs. Is there any chance the blog-specific media
> directories need to be created if they don't exist? Do i need to patch this
> or is there anything else going on? Ideas welcome!
>
> java.lang.NullPointerException
> at
> org.apache.roller.weblogger.ui.struts2.editor.MediaFileView.execute(MediaFileView.java:185)
Here's some context for that NullPointerException:
MediaFileDirectory directory;
if (StringUtils.isNotEmpty(this.directoryId)) {
directory = manager.getMediaFileDirectory(this.directoryId);
} else if (StringUtils.isNotEmpty(this.directoryPath)) {
directory =
manager.getMediaFileDirectoryByPath(getActionWeblog(),
this.directoryPath);
} else {
directory =
manager.getMediaFileRootDirectory(getActionWeblog());
}
this.directoryId = directory.getId(); // this is line 185
It appears that, perhaps, you don't have a media file root directory
for your weblog and therefore directory is null. Can you tell some
more about your install? Was it an upgrade or a fresh install?
- Dave