الْقَاضِي looks identical in the nominative and genitive, but that does not make it indeclinable.
It is an inflected noun: its grammatical case varies, although some vowels are estimated.
Avoid this error: “I cannot see a case vowel, therefore the word is mabnī.” That conclusion is false.