Skip to content

Commit

Permalink
https://github.com/manifold-systems/manifold/issues/635
Browse files Browse the repository at this point in the history
- fix npe
  • Loading branch information
rsmckinney committed Nov 1, 2024
1 parent 09fc06a commit ecbab79
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,14 @@ private void processConstant( Map<String, String> map, JCTree.JCVariableDecl def

private String getBuildConfigSourcePath()
{
if( JavacPlugin.instance() == null )
{
// probably in an IDE, which will have an IDE-specific SymbolProvider service impl for android build variants
return null;
}

Set<String> sourcePath = JavacPlugin.instance().deriveJavaSourcePath();

String generatedClassesDir = null;
for( String path: sourcePath )
{
Expand Down

0 comments on commit ecbab79

Please sign in to comment.