to prevent TextLine is null
authorYunji Park <yunji19.park@samsung.com>
Mon, 29 Apr 2013 05:22:03 +0000 (14:22 +0900)
committerYunji Park <yunji19.park@samsung.com>
Mon, 29 Apr 2013 05:22:03 +0000 (14:22 +0900)
Change-Id: I8b2fc88a0ca46eec741a0d91d128fa351fab7610

src/graphics/text/FGrp_TextTextColumn.cpp

index 717548d..e7af4b6 100644 (file)
@@ -2125,6 +2125,8 @@ TextColumn::CompareDeletedLine(void)
        SysTryReturn(NID_GRP, pOldTextLineNode, E_SYSTEM, E_SYSTEM, "[E_SYSTEM] Fail to get text line node.");
 
        pOldTextLine = static_cast < TextLine* >(pOldTextLineNode->pObject);
+       SysTryReturn(NID_GRP, pOldTextLine, E_SYSTEM, E_SYSTEM, "[E_SYSTEM] Fail to get text line node.");
+
        changedStartLineIndex = pOldTextLine->GetIndex();
        pNewTextLineNode = TextSimpleList::GetNthNode(__pLines, changedStartLineIndex);
        SysTryReturn(NID_GRP, pNewTextLineNode, E_INVALID_STATE, E_INVALID_STATE