Changeset 1275:ac55724157c7

Show
Ignore:
Timestamp:
06/18/10 20:21:25 (3 years ago)
Author:
Thomas Gambet <tgambet@…>
Branch:
default
Message:

fixed: threw a npe if messages.properties does not exist

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/org/w3c/unicorn/Framework.java

    r1271 r1275  
    568568                logger.debug("Loading messages from messages.properties"); 
    569569                 
     570                InputStream stream = Framework.class.getResourceAsStream("/messages.properties"); 
     571                 
     572                if (stream == null) { 
     573                        logger.info("File messages.properties not found in classpath. No default message has been added."); 
     574                        return; 
     575                } 
     576                 
    570577                Properties props = new Properties(); 
    571578                try {