BlockingQueue<String>[] queue = new LinkedBlockingQueue[5];
creates an array of null references. You need to actually initialize each one:
for(int i=0; i<queue.length; i++){
queue[i]=new LinkedBlockingQueue(); //change constructor as needed
}