cid#1358838 cid#1358839 cid#1358840 assert to avoid null pointer dereference
Change-Id: I95f069cb3efa7137c9382c9d9eb6d1353471d28e Reviewed-on: https://gerrit.libreoffice.org/24498 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
This commit is contained in:
parent
ec51593297
commit
c30b5d2a38
@ -310,6 +310,7 @@ public class LocalOfficeConnection
|
||||
Object aInitialObject = null;
|
||||
try
|
||||
{
|
||||
System.out.println("debug, LocalOfficeConnection: mURL is '"+mURL+"'");
|
||||
aInitialObject = resolve(xLocalContext, mURL);
|
||||
}
|
||||
catch( com.sun.star.connection.NoConnectException e )
|
||||
|
@ -162,6 +162,7 @@ void SdMiscTest::testTdf99396()
|
||||
|
||||
// Set the vertical alignment of the cells to bottom.
|
||||
sdr::table::SvxTableController* pTableController = dynamic_cast<sdr::table::SvxTableController*>(pView->getSelectionController().get());
|
||||
CPPUNIT_ASSERT(pTableController);
|
||||
SfxRequest aRequest(pViewShell->GetViewFrame(), SID_TABLE_VERT_BOTTOM);
|
||||
pTableController->Execute(aRequest);
|
||||
// This was 0, it wasn't possible to undo a vertical alignment change.
|
||||
@ -178,6 +179,7 @@ void SdMiscTest::testTdf99396TextEdit()
|
||||
SdPage* pPage = pViewShell->GetActualPage();
|
||||
SdrObject* pObject = pPage->GetObj(0);
|
||||
auto pTableObject = dynamic_cast<sdr::table::SdrTableObj*>(pObject);
|
||||
CPPUNIT_ASSERT(pTableObject);
|
||||
SdrView* pView = pViewShell->GetView();
|
||||
pView->MarkObj(pObject, pView->GetSdrPageView());
|
||||
|
||||
@ -199,6 +201,7 @@ void SdMiscTest::testTdf99396TextEdit()
|
||||
}
|
||||
{
|
||||
auto pTableController = dynamic_cast<sdr::table::SvxTableController*>(pView->getSelectionController().get());
|
||||
CPPUNIT_ASSERT(pTableController);
|
||||
SfxRequest aRequest(pViewShell->GetViewFrame(), SID_TABLE_VERT_BOTTOM);
|
||||
pTableController->Execute(aRequest);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user