diff --git a/hwe/func_converter.php b/hwe/func_converter.php
index 4d34e290..a2820a00 100644
--- a/hwe/func_converter.php
+++ b/hwe/func_converter.php
@@ -255,7 +255,10 @@ function getConnect($con) {
return $conname;
}
-function getNationType2(int $type) {
+function getNationType2(?int $type) {
+ if($type === null){
+ return '-';
+ }
[$name, $pros, $cons] = getNationTypeList()[$type]??['-', '', ''];
return "{$pros} {$cons}";
}