public TrackInfo getCurrent() {
        TrackInfo trackInfo = null;
        try {
            trackInfo = queue.get(position);
        } catch (IndexOutOfBoundsException e) {
            trackInfo = null;
        }
        return trackInfo;
    }
public TrackInfo getCurrent() {
        TrackInfo trackInfo = null;
        try {
            trackInfo = queue.get(position);
        } catch (IndexOutOfBoundsException e) {
            trackInfo = null;
        }
        return trackInfo;
    }
public TrackInfo getCurrent ( ) { TrackInfo trackInfo = null ; try { trackInfo = queue . get ( position ) ; } catch ( IndexOutOfBoundsException e ) { trackInfo = null ; } return trackInfo ; }
returns the current played track or null
@return an instance of TrackInfo
returns the current played track or null