Buggy code:
protected int getAfterWidthWithPadding ( ) { } protected void initLayout ( Style layoutStyle , int availWidth ) { } protected void initMargin ( Style itemStyle , int availWidth ) { } protected void initPadding ( Style itemStyle , int availWidth ) { } public int getPaddingRight ( ) { } public int getPaddingLeft ( ) { } public int getPaddingTop ( ) { } public int getPaddingBottom ( ) { } public int getPaddingHorizontal ( ) { } public int getPaddingVertical ( ) { } public int getMarginRight ( ) { } public int getMarginLeft ( ) { } public int getMarginTop ( ) { } public int getMarginBottom ( ) { } protected void setContentWidth ( int width ) { } protected void setContentHeight ( int height ) { } protected void initStyle ( ) { } protected abstract void initContent ( int firstLineWidth , int availWidth , int availHeight ) { } protected abstract void paintContent ( int x , int y , int leftBorder , int rightBorder , Graphics g ) { } protected abstract String createCssSelector ( ) { } protected boolean handleKeyPressed ( int keyCode , int gameAction ) { } protected boolean handleKeyRepeated ( int keyCode , int gameAction ) { } protected boolean handleKeyReleased ( int keyCode , int gameAction ) { } public void notifyVisited ( ) { } public void notifyUnvisited ( ) { } public boolean notifyItemPressedStart ( ) { } public boolean isPressed ( ) { } public boolean isFocused ( ) { } public void notifyItemPressedEnd ( ) { } public boolean isInContentArea ( int relX , int relY ) { } public boolean isInContentWithPaddingArea ( int relX , int relY ) { } public boolean isInItemArea ( int relX , int relY ) { } public boolean isInItemArea ( int relX , int relY , Item child ) { } protected boolean handlePointerPressed ( int relX , int relY ) { } protected boolean handlePointerReleased ( int relX , int relY ) { } protected boolean handlePointerDragged ( int relX , int relY , ClippingRegion repaintRegion ) { } protected boolean handlePointerDragged ( int relX , int relY ) { } public boolean handlePointerTouchDown ( int x , int y ) { } public boolean handlePointerTouchUp ( int x , int y ) { } protected boolean handleGesture ( int gesture , int x , int y ) { } protected boolean handleGestureHold ( int x , int y ) { } protected boolean handleGestureSwipeLeft ( int x , int y ) { } protected boolean handleGestureSwipeRight ( int x , int y ) { } public void addRepaintArea ( ClippingRegion repaintRegion ) { } public void addRelativeToContentRegion ( ClippingRegion repaintRegion , int x , int y , int width , int height ) { } public void addRelativeToBackgroundRegion ( ClippingRegion repaintRegion , int x , int y , int width , int height ) { } public void addRelativeToBackgroundRegion ( Background animatedBackground , Border animatedBorder , ClippingRegion repaintRegion , int x , int y , int width , int height ) { } public void animate ( long currentTime , ClippingRegion repaintRegion ) { } public boolean animate ( ) { } public Style getFocusedStyle ( ) { } public void handleOnFocusSoftKeyboardDisplayBehavior ( ) { } protected Style focus ( Style newStyle , int direction ) { System . out . println ( ( "focus<seq2seq4repair_space>" + ( this ) ) ) ; Style oldStyle = this . style ; if ( ( ! ( this . isFocused ) ) || ( ( newStyle != ( this . style ) ) && ( newStyle != null ) ) ) { if ( ( ! ( this . isStyleInitialised ) ) && ( oldStyle != null ) ) { setStyle ( oldStyle ) ; } if ( newStyle == null ) { newStyle = getFocusedStyle ( ) ; } this . preserveViewType = true ; this . isFocused = true ; this . isJustFocused = true ; setStyle ( newStyle ) ; if ( this . isPressed ) { this . normalStyle = newStyle ; } this . preserveViewType = false ; if ( ( this . commands ) != null ) { showCommands ( ) ; } if ( oldStyle == null ) { oldStyle = StyleSheet . defaultStyle ; } <START_BUG> if ( ( this . _androidView ) != null ) { <END_BUG> this . _androidView . requestFocus ( ) ; } EventManager . fireEvent ( EVENT_FOCUS , this , new Integer ( direction ) ) ; } return oldStyle ; } protected void defocus ( Style originalStyle ) { } public void showCommands ( ) { } protected void addCommands ( ArrayList commandsList ) { } protected boolean handleCommand ( Command cmd ) { } protected boolean handleCommand ( javax . microedition . lcdui . Command cmd ) { } protected void showNotify ( ) { } protected void hideNotify ( ) { } public void show ( Display display ) { } public void show ( Display display , Style screenTransitionStyle ) { } public void releaseResources ( ) { } public void destroy ( ) { } public void setAttribute ( Object key , Object value ) { } public Object getAttribute ( Object key ) { } public Object removeAttribute ( Object key ) { } public HashMap getAttributes ( ) { } public Item getItemAt ( int relX , int relY ) { } public int getAbsoluteX ( ) { } public int getAbsoluteY ( ) { } public void setAbsoluteY ( int absY ) { } public int getContentX ( ) { } public int getContentY ( ) { } public int getContentWidth ( ) { } public int getContentHeight ( ) { } public int getAvailableContentWidth ( ) { } public int getAvailableContentHeight ( ) { } public int getItemAreaHeight ( ) { } public int getBackgroundX ( ) { } public int getBackgroundY ( ) { }

Fix:
if ( ( ( this . _androidView ) != null ) && ( this . isShown ) ) {