Fixed NullPointerException

Moved info array element initialization to method with component
creation so it only runs after all variables are initialized