View | Details | Raw Unified | Return to issue 119959
Collapse All | Expand All

(-)sw/source/core/edit/edattr.cxx (-1 / +14 lines)
Lines 429-434 Link Here
429
            ASSERT( rTNd.GetNumRule(),
429
            ASSERT( rTNd.GetNumRule(),
430
                    "<lcl_IsNoEndTxtAttrAtPos(..)> - no list style found at text node. Serious defect -> please inform OD." );
430
                    "<lcl_IsNoEndTxtAttrAtPos(..)> - no list style found at text node. Serious defect -> please inform OD." );
431
            const SwNumRule* pNumRule = rTNd.GetNumRule();
431
            const SwNumRule* pNumRule = rTNd.GetNumRule();
432
			//Modified for i119959,2012.6.12
433
			//Under this scenario,this pointer is null,but on win,it doesn't crash immediately
434
			//it exits with exception,and associated memory will have problem which leads to crash problem in 
435
			//other place in dev env...
436
			if ( pNumRule )
437
			{
438
			//End
432
            const SwNumFmt &rNumFmt = pNumRule->Get( static_cast<sal_uInt16>(rTNd.GetActualListLevel()) );
439
            const SwNumFmt &rNumFmt = pNumRule->Get( static_cast<sal_uInt16>(rTNd.GetActualListLevel()) );
433
            if( SVX_NUM_BITMAP != rNumFmt.GetNumberingType() )
440
            if( SVX_NUM_BITMAP != rNumFmt.GetNumberingType() )
434
            {
441
            {
Lines 436-442 Link Here
436
                    sExp = rNumFmt.GetBulletChar();
443
                    sExp = rNumFmt.GetBulletChar();
437
                else
444
                else
438
                    sExp = rTNd.GetNumString();
445
                    sExp = rTNd.GetNumString();
439
            }
446
				}
447
			//Modified for i119959,2012.6.12
448
			//Under this scenario,this pointer is null,but on win,it doesn't crash immediately
449
			//it exits with exception,and associated memory will have problem which leads to crash problem in 
450
			//other place in dev env...
451
			}
452
			//End
440
        }
453
        }
441
    }
454
    }
442
455

Return to issue 119959