diff --git a/400_xowa/src/gplx/xowa/htmls/core/wkrs/imgs/Xoh_img_hzip__dump__basic__tst.java b/400_xowa/src/gplx/xowa/htmls/core/wkrs/imgs/Xoh_img_hzip__dump__basic__tst.java
index 20d4f7424..20d03a416 100644
--- a/400_xowa/src/gplx/xowa/htmls/core/wkrs/imgs/Xoh_img_hzip__dump__basic__tst.java
+++ b/400_xowa/src/gplx/xowa/htmls/core/wkrs/imgs/Xoh_img_hzip__dump__basic__tst.java
@@ -105,4 +105,9 @@ public class Xoh_img_hzip__dump__basic__tst {
, "
"
);
}
+ @Test public void Existing_src_causes_npe() { // ISSUE#:400; DATE:2019-03-26
+ fxt.Test__decode
+ ( "%}'h+bAA.png/!6!1bA.png"
+ , "
");
+ }
}
diff --git a/400_xowa/src/gplx/xowa/htmls/core/wkrs/imgs/atrs/Xoh_img_src_data.java b/400_xowa/src/gplx/xowa/htmls/core/wkrs/imgs/atrs/Xoh_img_src_data.java
index 081571b7c..053c7563c 100644
--- a/400_xowa/src/gplx/xowa/htmls/core/wkrs/imgs/atrs/Xoh_img_src_data.java
+++ b/400_xowa/src/gplx/xowa/htmls/core/wkrs/imgs/atrs/Xoh_img_src_data.java
@@ -110,6 +110,7 @@ public class Xoh_img_src_data implements Bfr_arg_clearable, Xoh_itm_parser {
}
public void Init_by_decode(byte[] src, boolean file_is_orig, byte[] file_ttl_bry, int file_w, double file_time, int file_page) {
this.src_bry = src; this.src_bgn = 0; this.src_end = src.length;
+ this.src_mid = Bry_.Mid(src, src_bgn, src_end);
this.file_is_orig = file_is_orig;
this.file_ttl_bry = file_ttl_bry; this.file_w = file_w; this.file_time = file_time; this.file_page = file_page;
}