Changeset 400:0159929655da

Show
Ignore:
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:
1 modified

Legend:

Unmodified
Added
Removed
  • src/org/w3c/unicorn/action/IndexAction.java

    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 $ 
    22// Author: Thomas Gambet 
    33// (c) COPYRIGHT MIT, ERCIM and Keio, 2009. 
     
    3535                 
    3636                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                        } 
    3942                } 
    4043