Changeset 106


Ignore:
Timestamp:
10/11/02 16:12:43 (20 years ago)
Author:
piso
Message:

setDefaultCursor(): avoid NPE if buffer is null.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/j/src/org/armedbear/j/Editor.java

    r91 r106  
    33 *
    44 * Copyright (C) 1998-2002 Peter Graves
    5  * $Id: Editor.java,v 1.6 2002-10-11 01:04:28 piso Exp $
     5 * $Id: Editor.java,v 1.7 2002-10-11 16:12:43 piso Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    68056805    public final void setDefaultCursor()
    68066806    {
    6807         display.setCursor(displayReady ? buffer.getDefaultCursor() : waitCursor);
     6807        if (buffer == null)
     6808            Debug.bug();
     6809        final Cursor cursor;
     6810        if (displayReady && buffer != null)
     6811            cursor = buffer.getDefaultCursor();
     6812        else
     6813            cursor = waitCursor;
     6814        display.setCursor(cursor);
    68086815    }
    68096816
Note: See TracChangeset for help on using the changeset viewer.