Unless some major details are being left out of this story the evidence behind his conviction seems ludicrously flimsy.
Firstly the assertion that the "gun" belonged to him, just because it was found near his shelter and had his DNA on it. That thing looks so unlike a gun that he could have easily brushed against it or picked it up and not even remembered, leaving some skin cells behind in the process. The fact that a person's DNA is found on objects in the vicinity of where they have been living doesn't seem particularly surprising.
Secondly, who gets to decide what a "firearm" is? All kinds of objects could potentially contain an explosion and fire a projectile.
I fail to see how a jury could possibly reach the standard of "beyond all reasonable doubt" in this case (unless, as I mentioned, some very important details have been left out).