#fixed code
                                @Test
    public void moderator_should_approve_question_information() throws Exception {
        Information approvedInfo = new QuestionInformation("edited title", "edited desc", 
                new LoggedUser(otherUser, null), new ArrayList<Tag>(), "comment");
        
        moderator.approve(myQuestion, approvedInfo);
        
        assertEquals(approvedInfo, myQuestion.getInformation());
        assertTrue(myQuestion.getInformation().isModerated());
    }
#vulnerable code 
                                @Test
    public void moderator_should_approve_question_information() throws Exception {
        Question question = question("question title", "question description", author);
        Information approvedInfo = new QuestionInformation("edited title", "edited desc", 
                new LoggedUser(otherUser, null), new ArrayList<Tag>(), "comment");
        
        moderator.approve(question, approvedInfo);
        
        assertEquals(approvedInfo, question.getInformation());
        assertTrue(question.getInformation().isModerated());
    } 
                            #location 10 
                            #vulnerability type NULL_DEREFERENCE