Révision 3611
TXM/trunk/org.txm.rcp/src/main/java/org/txm/rcp/swt/dialog/UpdateCorpusDialog.java (revision 3611) | ||
---|---|---|
178 | 178 |
doUpdateEditions = updateEditionsCheck.getSelection(); |
179 | 179 |
doForceUpdate = forceUpdateCheck.getSelection(); |
180 | 180 |
doOpenCorpusParameters = openCorpusParameters.getSelection(); |
181 |
corpusToUpdate = (MainCorpus) ((IStructuredSelection)corpusList.getSelection()).getFirstElement(); |
|
181 |
if (corpusList != null) { |
|
182 |
corpusToUpdate = (MainCorpus) ((IStructuredSelection)corpusList.getSelection()).getFirstElement(); |
|
183 |
} |
|
182 | 184 |
} |
183 | 185 |
|
184 | 186 |
super.buttonPressed(buttonId); |
Formats disponibles : Unified diff