/*
- * jSite - ProjectFilesPage.java - Copyright © 2006–2011 David Roden
+ * jSite - ProjectFilesPage.java - Copyright © 2006–2012 David Roden
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@SuppressWarnings("synthetic-access")
private void storeText(DocumentEvent documentEvent) {
FileOption fileOption = getSelectedFile();
+ if (fileOption == null) {
+ /* no file selected. */
+ return;
+ }
Document document = documentEvent.getDocument();
int documentLength = document.getLength();
try {