|  |  | @ -380,13 +380,22 @@ public class CoverArtController implements LastModified { | 
			
		
	
		
		
			
				
					
					|  |  |  |         public BufferedImage createImage(int size) { |  |  |  |         public BufferedImage createImage(int size) { | 
			
		
	
		
		
			
				
					
					|  |  |  |             if (coverArt != null) { |  |  |  |             if (coverArt != null) { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 InputStream in = null; |  |  |  |                 InputStream in = null; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 String reason = null; | 
			
		
	
		
		
			
				
					
					|  |  |  |                 try { |  |  |  |                 try { | 
			
		
	
		
		
			
				
					
					|  |  |  |                     in = getImageInputStream(coverArt); |  |  |  |                     in = getImageInputStream(coverArt); | 
			
		
	
		
		
			
				
					
					|  |  |  |                     BufferedImage bimg = ImageIO.read(in); |  |  |  |                     if (in == null) { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                     if (bimg != null) { |  |  |  |                         reason = "getImageInputStream"; | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                         return scale(bimg, size, size); |  |  |  |  | 
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                     } |  |  |  |                     } | 
			
		
	
		
		
			
				
					
					|  |  |  |                     LOG.warn("Failed to process cover art " + coverArt + ": {}", bimg); |  |  |  |                     else { | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         BufferedImage bimg = ImageIO.read(in); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         if (bimg == null) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             reason = "ImageIO.read"; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         else { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             return scale(bimg, size, size); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     LOG.warn("Failed to process cover art " + coverArt + ": " + reason + " failed"); | 
			
		
	
		
		
			
				
					
					|  |  |  |                 } catch (Throwable x) { |  |  |  |                 } catch (Throwable x) { | 
			
		
	
		
		
			
				
					
					|  |  |  |                     LOG.warn("Failed to process cover art " + coverArt + ": " + x, x); |  |  |  |                     LOG.warn("Failed to process cover art " + coverArt + ": " + x, x); | 
			
		
	
		
		
			
				
					
					|  |  |  |                 } finally { |  |  |  |                 } finally { | 
			
		
	
	
		
		
			
				
					|  |  | 
 |