We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b703c0 commit 31f7c5dCopy full SHA for 31f7c5d
edu.cuny.hunter.streamrefactoring.core/src/edu/cuny/hunter/streamrefactoring/core/analysis/Stream.java
@@ -589,6 +589,12 @@ private void inferInitialOrdering(EclipseProjectAnalysisEngine<InstanceKey> engi
589
// get the use value number for the stream creation.
590
int valueNumber = getUseValueNumberForCreation(engine);
591
592
+ if (valueNumber < 0) {
593
+ LOGGER.warning("Use value number: " + valueNumber + " for stream creation: "
594
+ + this.getCreation().getName() + " is invalid. Most likely #155.");
595
+ throw new UnhandledCaseException("Encountered unhandled case, most likely an embedded stream.");
596
+ }
597
+
598
// get the enclosing method node.
599
CGNode node = null;
600
try {
0 commit comments