#fixed code
                                protected void notify(byte... bytes) {
        if (rawByteListeners == null || rawByteListeners.isEmpty()) return;
        for (RawByteListener listener : rawByteListeners) {
            listener.handle(bytes);
        }
    }
#vulnerable code 
                                protected void notify(byte... bytes) {
        if (listeners == null || listeners.isEmpty()) return;
        for (RawByteListener listener : listeners) {
            listener.handle(bytes);
        }
    } 
                            #location 3 
                            #vulnerability type THREAD_SAFETY_VIOLATION