I found a similar question about a PriorityQueue, the error with that one was that it wasn't initialized correctly. I might have the same problem, but i can't figure out how to initialize it correctly!
As of now i just do:
BlockingQueue myQueue = null;
but that throws an exception as soon as i try to add something to the list.
How do i correctly initialize a BlockingQueue?