Changeset 1275:ac55724157c7
- 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:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r1271
|
r1275
|
|
| 568 | 568 | logger.debug("Loading messages from messages.properties"); |
| 569 | 569 | |
| | 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 | |
| 570 | 577 | Properties props = new Properties(); |
| 571 | 578 | try { |