You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import java.nio.ByteBuffer;
public class ErrorProneTest {
public void ByteBufferBackingArrayTest() {
byte[] byteArray = ((ByteBuffer) new Object()).array();
}
}
Errorprone throws this exception
error-prone version: 2.3.0
BugPattern: ByteBufferBackingArray
Stack Trace:
java.lang.NullPointerException
at com.google.errorprone.bugpatterns.ByteBufferBackingArray.matchMethodInvocation(ByteBufferBackingArray.java:92)
at com.google.errorprone.scanner.ErrorProneScanner.visitMethodInvocation(ErrorProneScanner.java:904)
at com.google.errorprone.scanner.ErrorProneScanner.visitMethodInvocation(ErrorProneScanner.java:145)
The text was updated successfully, but these errors were encountered:
When parsing the following method
Errorprone throws this exception
The text was updated successfully, but these errors were encountered: