mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-09-27 08:05:46 +00:00
follow-up patch for [HER-1764] H3 needs in-UI quit/shutdown option
* Flash.java
avoid NPE when "flashdrop" cookie not set
This commit is contained in:
@@ -79,6 +79,9 @@ public class Flash {
|
||||
public static List<Flash> getFlashes(Request request) {
|
||||
List<Flash> flashes = new LinkedList<Flash>();
|
||||
Series<Cookie> cookies = request.getCookies();
|
||||
if (cookies.getFirstValue("flashdrop") == null) {
|
||||
return flashes;
|
||||
}
|
||||
for (String dropbox : cookies.getFirstValue("flashdrop").split(",")) {
|
||||
if(dropbox!=null) {
|
||||
Flash flash = dropboxes.remove(Long.parseLong(dropbox));
|
||||
|
||||
Reference in New Issue
Block a user