Skip to content

Commit

Permalink
Fix #1130
Browse files Browse the repository at this point in the history
* Fix #1130
  • Loading branch information
stefan-kolb authored and simonharrer committed Apr 7, 2016
1 parent 401529a commit d7397b6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 0 additions & 2 deletions src/integrationTest/java/net/sf/jabref/gui/GUITest.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@
import static org.assertj.swing.launcher.ApplicationLauncher.application;

public class GUITest extends AssertJSwingJUnitTestCase {

private AWTExceptionHandler awtExceptionHandler;


@Override
protected void onSetUp() {
awtExceptionHandler = new AWTExceptionHandler();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,12 @@ private void buildGUI() {
gbl.setConstraints(btnDefault, con);
pan.add(btnDefault);

for (EntryType type : EntryTypes.getAllValues(panel.getBibDatabaseContext().getMode())) {
textFields.put(type.getName().toLowerCase(), addEntryType(pan, type, y));
y++;
// check if DB is open
if(panel != null) {
for (EntryType type : EntryTypes.getAllValues(panel.getBibDatabaseContext().getMode())) {
textFields.put(type.getName().toLowerCase(), addEntryType(pan, type, y));
y++;
}
}

con.fill = GridBagConstraints.BOTH;
Expand Down

0 comments on commit d7397b6

Please sign in to comment.