From: Ole Streicher <olebole@debian.org>
Date: Wed, 3 Jul 2024 09:40:10 +0200
Subject: Compatibility with newer libfits-java

Libfits-java now handles the padding internally if possible and does
not provide the truncated HDU in the exception.

Closes: #1074663
---
 skyview/survey/HipsImage.java | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/skyview/survey/HipsImage.java b/skyview/survey/HipsImage.java
index 7f77873..0be186f 100644
--- a/skyview/survey/HipsImage.java
+++ b/skyview/survey/HipsImage.java
@@ -377,13 +377,7 @@ public class HipsImage extends Image {
 	    }
             fts = new Fits(file);
           
-            BasicHDU hdu;
-            
-            try {
-                hdu = fts.readHDU();
-            } catch (PaddingException e) {
-                hdu = e.getTruncatedHDU();
-            }
+            BasicHDU hdu = fts.readHDU();
             Object o = hdu.getKernel();
             double[][] img = (double[][])nom.tam.util.ArrayFuncs.convertArray(o, double.class);
             fts.close();
