Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix possible NullPointerException in SoySyntaxException.associateMetaInfo #6

Closed
wants to merge 1 commit into from

Conversation

monzonj
Copy link

@monzonj monzonj commented Jul 20, 2014

Method claims the parameter srcLoc can be null (@nullable) but it will potentially throw and exception if that were the case.

@monzonj monzonj changed the title Fixed READMEs to specify the project requires java7 instead of java6 Fix possible NullPointerException in SoySyntaxException.associateMetaInfo Nov 9, 2014
@mikesamuel mikesamuel mentioned this pull request Apr 17, 2014
@Ubehebe
Copy link
Contributor

Ubehebe commented Jan 10, 2015

@monzonj can you point out where the NPE can happen? srcLoc is never dereferenced in this method. It is assigned to this.srcLoc, but only when nonnull (line 167).

@Ubehebe Ubehebe closed this Jan 21, 2015
Ubehebe pushed a commit that referenced this pull request Feb 6, 2015
Cl #6 adds support for the print node.

The print node itself is fairly trivial, but this brings in support for the bulk of the low level expression support. Unlike JS, Python syntax has a few fairly fundamental differences from Soy syntax, such as ternary conditional ordering and operator precedence. So, the primary logic focus of this CL lives in TranslateToPyExprVisitor.

Print directive and function implementations are left to CL #7. See: []
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=85578793
Ubehebe pushed a commit that referenced this pull request Feb 27, 2015
Related Design Doc: []  []

Added support for plural nodes.

Though Plural Nodes could be rendered as ICU string which is the case in Java backend, current design has better efficiency.  It saves the effort of parsing at runtime.
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=87208937
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants