スレッド「メイン」での例外 gui.CataloguePanel.(CataloguePanel.java) での java.lang.NullPointerException
BookQuery
オブジェクトを初期化しCataloguePanel
て呼び出しようとしていますgetBookList()
CatalogPanel.java
package gui;
import java.util.ArrayList;
import backend.Book;
import backend.BookQuery;
// Catalog panel. Shows the library titles' information and allows users to place their orders.
public class CataloguePanel extends JPanel implements GBPanel {
BookQuery bQuery;
ArrayList<Book> bookList = bQuery.getBookList(); // Here's where the error occurred
}
編集: http://www.reactionface.info/sites/default/files/imagecache/Node_Page/images/1314029819767.png