summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
Diffstat (limited to 'extensions')
-rw-r--r--extensions/qa/integration/extensions/ComponentFactory.java2
-rw-r--r--extensions/qa/integration/extensions/ObjectInspector.java15
2 files changed, 7 insertions, 10 deletions
diff --git a/extensions/qa/integration/extensions/ComponentFactory.java b/extensions/qa/integration/extensions/ComponentFactory.java
index 5a449dfda3cc..170e19a43667 100644
--- a/extensions/qa/integration/extensions/ComponentFactory.java
+++ b/extensions/qa/integration/extensions/ComponentFactory.java
@@ -40,7 +40,7 @@ public class ComponentFactory implements XSingleComponentFactory
catch ( java.lang.ClassNotFoundException e ) { }
Constructor ctors[] = _handlerClass.getConstructors();
- for ( int i = 0; i < ctors.length && ctors != null; ++i)
+ for ( int i = 0; i < ctors.length; ++i)
{
Class ctorParams[] = ctors[i].getParameterTypes();
if ( ( ctorParams.length == 1 ) && ( ctorParams[0].equals( XComponentContext.class ) ) )
diff --git a/extensions/qa/integration/extensions/ObjectInspector.java b/extensions/qa/integration/extensions/ObjectInspector.java
index 4dac96782a46..9db57723ba9b 100644
--- a/extensions/qa/integration/extensions/ObjectInspector.java
+++ b/extensions/qa/integration/extensions/ObjectInspector.java
@@ -129,16 +129,13 @@ public class ObjectInspector extends complexlib.ComplexTestCase
private void closeExistentInspector()
{
Frame existentInspectorFrame = new Frame( m_desktop.findFrame( m_inspectorFrameName, 255 ) );
- if ( existentInspectorFrame != null )
+ try
{
- try
- {
- existentInspectorFrame.close( true );
- }
- catch( com.sun.star.util.CloseVetoException e )
- {
- failed( "could not close the existent inspector frame" );
- }
+ existentInspectorFrame.close( true );
+ }
+ catch( com.sun.star.util.CloseVetoException e )
+ {
+ failed( "could not close the existent inspector frame" );
}
}