Branch Node Accessed None

Here is the code for the second error: