Open bepopov opened 2 years ago
Why/how are you making classStack null?
Why/how are you making classStack null?
I don't make classStack null. It is because of the code of ArrayDeque:
package java.util;
public class ArrayDeque<E> extends AbstractCollection<E>
implements Deque<E>, Cloneable, Serializable
{
//...
public void push(E e) {
addFirst(e);
}
public void addFirst(E e) {
if (e == null)
throw new NullPointerException();
elements[head = (head - 1) & (elements.length - 1)] = e;
if (head == tail)
doubleCapacity();
}
//...
}
Oh, ok, that's a bug. We can just skip the calls to push() and pop() in that case. Mind opening a pull request with the changes?
Oh, ok, that's a bug. We can just skip the calls to push() and pop() in that case. Mind opening a pull request with the changes?
Sure. I will create a pull request
Hello. I've found the following issue.
I built dll-library of generated JNI C++ integration code and tried to load it via Loader.loadLibrary but I got a NullPointerException. Here is the stacktrace:
I think it is related to method which puts cls to the related method as null:
I would suggest to return some more understandable error message. The version of javacpp I've used is 1.5.7