protected ImageDescriptor handleImageDescriptorError ( Object [ ] params , Throwable exception ) { if ( exception instanceof NullPointerException ) { final Object defaultImage = getDefaultImage ( ) ; if ( defaultImage instanceof ImageDescriptor ) { return ( ImageDescriptor ) defaultImage ; } if ( defaultImage instanceof Image ) { return ImageDescriptor . createFromImage ( ( Image ) defaultImage ) ; } return super . imageDescriptor ( params [ 0 ] ) ; } return Exceptions . throwUncheckedException ( exception ) ; }
Invoked when an image descriptor cannot be found .