Changeset 400:0159929655da
- Timestamp:
- 09/16/09 12:29:09 (4 years ago)
- Author:
- tgambet
- Branch:
- default
- convert_revision:
- svn:cdcfb263-7567-472c-a848-e2c2df3466e7/trunk@401
- Message:
-
if unicorn is not initialized, IndexAction? tries to initialize it once before sending a 500 error
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r383
|
r400
|
|
| 1 | | // $Id: IndexAction.java,v 1.16 2009-09-15 15:14:02 tgambet Exp $Id $ |
| | 1 | // $Id: IndexAction.java,v 1.17 2009-09-16 12:29:09 tgambet Exp $Id $ |
| 2 | 2 | // Author: Thomas Gambet |
| 3 | 3 | // (c) COPYRIGHT MIT, ERCIM and Keio, 2009. |
| … |
… |
|
| 35 | 35 | |
| 36 | 36 | if (!Framework.isUcnInitialized) { |
| 37 | | resp.sendError(500, "Unicorn is not initialized properly. Check logs."); |
| 38 | | return; |
| | 37 | Framework.init(); |
| | 38 | if (!Framework.isUcnInitialized) { |
| | 39 | resp.sendError(500, "Unicorn is not initialized properly. Check logs."); |
| | 40 | return; |
| | 41 | } |
| 39 | 42 | } |
| 40 | 43 | |