Store the real album object in the template context
[Sone.git] / src / main / java / net / pterodactylus / sone / web / DeleteAlbumPage.java
index f325332..41cd4b8 100644 (file)
@@ -74,7 +74,7 @@ public class DeleteAlbumPage extends SoneTemplatePage {
                if (!album.isPresent()) {
                        throw new RedirectException("invalid.html");
                }
-               templateContext.set("album", album);
+               templateContext.set("album", album.get());
        }
 
 }