Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

Commit

Permalink
fix(): fix npe introduced in 4939424 (#281)
Browse files Browse the repository at this point in the history
fixes #298
  • Loading branch information
knalli committed Jan 20, 2014
1 parent 6c4ca39 commit 173a9bc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/service/translate.js
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,9 @@ angular.module('pascalprecht.translate').provider('$translate', ['$STORAGE_KEY',
var $translate = function (translationId, interpolateParams, interpolationId) {

// trim off any whitespace
translationId = translationId.trim();
if (translationId) {
translationId = translationId.trim();
}

// determine translation table and current Interpolator
var table = $uses ? $translationTable[$uses] : $translationTable,
Expand Down

0 comments on commit 173a9bc

Please sign in to comment.